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.

Customising the CMS /

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

Can i use PHP session in SilverStripe?


Go to End


2 Posts   1352 Views

Avatar
mango82

Community Member, 3 Posts

16 June 2011 at 8:30pm

If I can't use PHP session, do I have any other options?

Avatar
martimiz

Forum Moderator, 1391 Posts

17 June 2011 at 2:07am

You can:

http://api.silverstripe.org/2.4/sapphire/control/Session.html

example:
Session::set('key', 'value');
Session::get('key');
Session::clear('key');