21301 Posts in 5735 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 824 Views |
-
Sessions

1 December 2009 at 7:34am
Can someone please provide me with documentation or an example of creating/managing session variables in SS. Where do I set session variables and where/how do I check if these variables are present. I am trying to set & check for a variable after a certain page has been navigated to. For example, if I select a store as my location, I would like to remember this as the user navigates the site.Thanks for any help.
-
Re: Sessions

1 December 2009 at 7:41pm
Session::set('var', "true!"); // sets var to "true!"
Session::get('var'); // returns "true!"
Session::clear('var'); // empties varYou can call those in any of your PHP files, classes.
| 824 Views | ||
|
Page:
1
|
Go to Top |


