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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1716 Views

Avatar
Lukin

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
Lukin