PHP Classes

My Session: Database based session management

Recommend this page to a friend!
  Info   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum (12)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 6,796 All time: 299 This week: 347Down
Version License Categories
mysession 1.0.0GNU General Publi...Databases, Cryptography, User Management
Description 

Author

"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.

Picture of Ska-Man
Name: Ska-Man <contact>
Classes: 2 packages by
Country: Italy Italy
Age: 43
All time rank: 35412 in Italy Italy
Week rank: 550 Down21 in Italy Italy Down
Innovation award
Innovation award
Nominee: 1x

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: -

  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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:6,796
This week:0
All time:299
This week:347Down
User Ratings User Comments (2)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:66%StarStarStarStar
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1375
 
Very good class to increase safety.
11 years ago (Breitkreuz)
80%StarStarStarStarStar
Very well done, Cheers!
13 years ago (Ixzy Twentyfour)
80%StarStarStarStarStar