Login   Register  
PHP Classes
elePHPant
Icontem

Security authorization: Validate sessions with cookie values

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-12-28 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,098 All time: 3,155 This week: 1,556Up
Version License PHP version Categories  
cryptsession 1.0GNU General Public Lice...5.0PHP 5, User Management, Security
Description Author  

This class can be used to validate sessions with cookie values.

It can start a session and store a variable with a value that is also encrypted and set to a cookie.

If the cookie has expired or the decrypted cookie value different than the session variable value, the session is destroyed and the user is redirected to an authentication page.

The class can regenerate and verify the cookie value on every page to avoid session stealing.

Picture of Ivan Priorov
Name: Ivan Priorov <contact>
Classes: 3 packages by
Country: Russian Federation Russian Federation
Age: 32
All time rank: 50911 in Russian Federation Russian Federation
Week rank: 306 Up6 in Russian Federation Russian Federation Up

  Files folder image Files  
File Role Description
Plain text file crypt_session.php Class Core class
Accessible without login Plain text file example.php Example Example

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,098All time:3,155
 This week:0This week:1,556Up
 User Comments (1)  
 
very helpful
5 years ago (g.r.vijaya)
52%StarStarStar