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, Ed, biapar, Willr, Ingo, swaiba

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

Go to End



Community Member, 56 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