PHP Classes

My Session: Database based session management

Recommend this page to a friend!

  Author Author  
Picture of Ska-Man
Name: Ska-Man <contact>
Classes: 2 packages by
Country: Italy Italy
Age: 42
All time rank: 35412 in Italy Italy
Week rank: 152 Up6 in Italy Italy Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
"My session" is a class that manages user access sessions by storing session data in a MySQL database.

This session storage method is more secure than the session system of PHP that by default stores session data in files.

The class may optionally encrypt the stored session data.

Details
######################## # mySession ReadMe # ######################## Read this file before use mySession class. Where to find: - main class file: mySession.class.php - configuration file: mySession.conf.php - Sql database structure: mysql.sql - Change Log: at the end of this document - How to: howto.htm - License: gpl-license.html - Example: in the "example/" directory C9 Workspace: https://c9.io/kaiserbaldo/db-encrypted-session The lastest version is: MySession 2.1 Before using mysessionClass check the md5sum. 88e16a572ac89e1ebc4336f0a390587b mySession.class.php 7d40e2a2e21b07da2c047231c10c0461 mysql.sql 2c71248345e58b49596461b1d07e3c68 mySession.conf.php If some file do not pass the md5sum test, ask for the file writing an email to: kaiserbaldo[]gmail.com Thanks for reading ######################### #My Session: Change Log # ######################### Version: 2.1 Release Date: 12/05/2013 Release Note: C9 Space Change Log: + New: Created a public workspace @C9 so anyone can collaborate: http://c9.io/kaiserbaldo/db-encrypted-session + Fixed: Fixed several documentation issue and some naming issue Version: 2.0 Release Date: 11/11/2011 Release Note: Bug Fixing Change Log: + Fixed: Undefined index on line 847 (posted by twwy) Version: 2.0 Beta3 Release Date: 14/01/2011 Release Note: Overwrite PHP Function Change Log: + You can now choose to overwrite php function. You can now use mySession without any change in your script Version: 2.0 Beta2 Release Date: 05/01/2011 Release Note: Improved security Change Log: + Added optional UserAgent control to prevent "Session Hijacking" + If a sessionId found in the cookie or in the request is not saved in the database an E_USER_ERROR error was triggered. Version: 2.0 Beta1 Release Date: 29/12/2010 Release Note: Rewriting code. Change Log: + Cleaned the code + Added Singleton design pattern + Added severals comments wrote according phpDoc style + Added severals new method + Changed database structure + Switched to PDO + If a sessionId found in the cookie or in the request is not saved in the database an E_USER_WARNING error was triggered and the session will be destroyed Version: 1.1 Release Date: 03/09/2004 Release Note: Added Features. Change Log: + Cleaned the code + Added PHP5/PHP4 full compatibility + Added a new method to retrive variables value ("get_var") Version: 1.0.0RC1 Release Date: 20/08/2004 Release Note: First Pubblic Release Change Log: -

  Classes of Ska-Man  >  My Session  >  Download Download .zip .tar.gz  >  Support forum Support forum (12)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: My Session
Base name: mysession
Description: Database based session management
Version: 1.0.0
PHP version: -
License: GNU General Public License (GPL)
All time users: 6791 users
All time rank: 299
Week users: 1 user
Week rank: 154 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Cryptography Encrypting, decrypting and hashing data View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (77%) Sufficient (77%) Sufficient (68%) Sufficient (72%) - - Sufficient (60%) 1325
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imageexample (3 directories)
Plain text file readme Doc. ReadMe file
Accessible without login Plain text file mySession.class.php Class The source of the class
Accessible without login Plain text file mySession.conf.php Conf. The conguration file for the class
Accessible without login Plain text file mysql.sql Data SQL Script
Accessible without login HTML file howto.htm Doc. The Manual
HTML file license.htm Lic. License

  Files folder image Files  /  example  
  Files folder image Files  /  example  /  cookieBasedSessionOverridingPHPFunction  
File Role Description
  Plain text file esempio2.php Example example of a cookie Based Session Overriding PHP Function
  Plain text file start.php Example an example using cookie Based Session and Overriding PHP Function

  Files folder image Files  /  example  /  cookieBasedSessionUsingClassMethod  
File Role Description
  Plain text file esempio2.php Example example of a cookie Based Session Using Class Method
  Plain text file start.php Example Example of a cookie Based Session Using Class Method

  Files folder image Files  /  example  /  deletingAnExistingSession  
File Role Description
  Plain text file esempio2.php Example example code
  Plain text file mySession.conf.php Example config file
  Plain text file start.php Example Start file

Install with Composer Install with Composer - Download Download all files: mysession.tar.gz mysession.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Files folder imageexample (3 directories)
Plain text file readme Doc. ReadMe file
Accessible without login Plain text file mySession.class.php Class The source of the class
Accessible without login Plain text file mySession.conf.php Conf. The conguration file for the class
Accessible without login Plain text file mysql.sql Data SQL Script
Accessible without login HTML file howto.htm Doc. The Manual
HTML file license.htm Lic. License

  Files folder image Files  /  example  
  Files folder image Files  /  example  /  cookieBasedSessionOverridingPHPFunction  
File Role Description
  Plain text file esempio2.php Example example of a cookie Based Session Overriding PHP Function
  Plain text file start.php Example an example using cookie Based Session and Overriding PHP Function

  Files folder image Files  /  example  /  cookieBasedSessionUsingClassMethod  
File Role Description
  Plain text file esempio2.php Example example of a cookie Based Session Using Class Method
  Plain text file start.php Example Example of a cookie Based Session Using Class Method

  Files folder image Files  /  example  /  deletingAnExistingSession  
File Role Description
  Plain text file esempio2.php Example example code
  Plain text file mySession.conf.php Example config file
  Plain text file start.php Example Start file

Install with Composer Install with Composer - Download Download all files: mysession.tar.gz mysession.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.