PHP Classes

PHP Session Variable Manipulation: Change or flash session variable 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: 272 All time: 7,704 This week: 75Up
Version License PHP version Categories
session_class 1.0.0Shareware5PHP 5, User Management
Description 

Author

This class can change or flash session variable values.

It provides common functions to check if a session variable exists, as well set, get or delete the value of a session variable.

The class can also flash a session variable by checking if it exists. In that case it deletes the variable and returns the current value. Otherwise it sets the variable to a new given value.

Innovation Award
PHP Programming Innovation award nominee
May 2019
Number 2


Prize: 1 Year Subscription to NomadPHP Advanced PHP Learning
Session variables are often used to store information that is useful to keep track of the activities of a user in a Web site.

Sometimes it is necessary to store information that can be used only once during the access of the same user.

This class provides means to retrieve an information value stored in a session variable and at the same time it removes that variable value from the session variables list, so it cannot be used more that once.

Manuel Lemos
Picture of Taranpreet Singh
  Performance   Level  
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

 

  Files folder image Files (1)  
File Role Description
Plain text file Session.php Class Session manipulation

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:272
This week:0
All time:7,704
This week:75Up
User Comments (4)