Jump to:

23358 Posts in 17874 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Notice: Undefined variable: _SESSION in when trying to acces session in _config.php

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 477 Views
  • Lukin
    Avatar
    Community Member
    42 Posts

    Notice: Undefined variable: _SESSION in when trying to acces session in _config.php Link to this post

    Hi I try to access a session variable in my _config.php getting the error
    Notice: Undefined variable: _SESSION in .../silverstripe/mysite/_config.php on line 66

    Using Session::get('Language') is not working either.
    I'm getting no error but the value for the variable is empty even though the value is set.
    which I tested with a function in my page_controller which outputs the correct value.

    Version is 2.4.7

    An ideas?

    Thanks in advance
    Lukin

    477 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.