PHP Classes

Session Store: Store and retrieve sessions as arrays of values

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 392 This week: 1All time: 6,634 This week: 560Up
Version License PHP version Categories
session-store 1Freely Distributable5PHP 5, User Management
Description 

Author

This class can store and retrieve sessions as arrays of values.

It can take on more strings of session data and add them to an array that is stored in a session variable.

The data values can be appended to the array or added with a specific array index value.

The class can also retrieve the array of values previously stored in that session variable or just specific values with given index keys values.

It can also check of any data values were added to the session variable, as well reset the session variable.

Picture of Anthony Amolochitis
  Performance   Level  
Name: Anthony Amolochitis <contact>
Classes: 10 packages by
Country: United States United States
Age: 44
All time rank: 1138166 in United States United States
Week rank: 411 Up48 in United States United States Up

Recommendations

What is the best PHP session class?
Handle session variables.

Example

<?php

require_once "SessionDataStore.php";


$someData = new stdClass() ;
$someData->name = "Billy Bob" ;
$someData->zipcode = "77002" ;
$someData->other = "Has curly hair";

/**
 * Store the data here
 */
SessionDataStore::AddData( json_encode( $someData ) );


/**
 * Get Array of custom data stored in the session
 */
$DataArray = SessionDataStore::GetData() ;






?>


  Files folder image Files  
File Role Description
Plain text file example.php Example Example file
Plain text file SessionDataStore.php Class Store data in sessions

 Version Control Unique User Downloads Download Rankings  
 0%
Total:392
This week:1
All time:6,634
This week:560Up