PHP Classes

PHP Session Variable Manipulation: Change or flash session variable values

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 272 All time: 7,697 This week: 660Up
Version License PHP version Categories
session_class 1.0.0Shareware5PHP 5, User Management


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  
Name: Taranpreet Singh <contact>
Classes: 2 packages by
Country: India India
Age: 30
All time rank: 3636247 in India India
Week rank: 278 Up23 in India India Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,697
This week:660Up
User Comments (4)