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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Can i use PHP session in SilverStripe?


Go to End


2 Posts   1081 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');