Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

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


Reply


534 Views

Avatar
Lukin

Community Member, 42 Posts

20 September 2012 at 7:01pm

Edited: 20/09/2012 7:02pm

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