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.

Customising the CMS

Can i use PHP session in SilverStripe?


Reply

2 Posts   740 Views

Avatar
mango82

16 June 2011 at 8:30pm Community Member, 3 Posts

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

Avatar
martimiz

17 June 2011 at 2:07am Forum Moderator, 1091 Posts

You can:

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

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