PHP Classes

Security authorization: Validate sessions with cookie values

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
Not enough user ratingsTotal: 1,176 All time: 3,220 This week: 660Up
Version License PHP version Categories
cryptsession 1.0GNU General Publi...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

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

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:1,176
This week:0
All time:3,220
This week:660Up
User Comments (1)
very helpful
16 years ago (g.r.vijaya)
52%StarStarStar