PHP Classes

Cookie session: Store session variables in a cookie when user away

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 3,969 All time: 796 This week: 660Up
Version License Categories
cookiesession 1.0.0GNU General Publi...User Management
Description 

Author

This class stores session variables in a persistent cookie, so when the user returns to the site after the session has expired, the session variables may be reloaded from the cookie, as if the continues the navigating in the site using the same session.

For instance, if you use a session to store information about the data that a user entered on your site, for example items in a shopping cart, it may be important to not loose this data. So the shopping cart information is stored also in a cookie. If there is a problem on the site or on the client 's browser, when user returns, he may resume shopping where he left.

Picture of Logan Dugenoux
Name: Logan Dugenoux <contact>
Classes: 6 packages by
Country: France France
Age: ???
All time rank: 785 in France France
Week rank: 128 Down5 in France France Equal

  Files folder image Files (2)  
File Role Description
Plain text file cookieSession.php Class main class file
Accessible without login Plain text file example.php Example Example of use of the class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,969
This week:0
All time:796
This week:660Up
 User Ratings  
 
 All time
Utility:77%StarStarStarStar
Consistency:72%StarStarStarStar
Documentation:-
Examples:77%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2172