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   782 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, 1132 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');