Login   Register  
PHP Classes
elePHPant
Icontem

DB eSession

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Lawrence Osiris
Name: Lawrence Osiris <e-mail contact>
Packages: 1 Browse all classes by Lawrence Osiris Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 10
All time rank: 26229 in United States United States
Week rank: 1433 Down169 in United States United States Down


  Detailed description   Download .zip .tar.gz  
This package is meant to manage session data stored in a MySQL database using PHP built-in session handling support.

General features:

- Stores session data in a MySQL table using session handler built-in PHP.
- Handle session expiration and cleanup.
- Supports the changes of session related configuration settings (including of PHP 5).
- Allows for normal or persistent MySQL database connections.
- Access to opened MySQL resource connection to use in your script.
- Can use a previously open database connection resource handle.
- Supports session identifiers with between 12 and 32 characters long.
- Custom or changeable database, table and column names.
- Has an option to create new session identifiers (you supply, class or PHP builds).
- Can initiate buffered output (using ob_start) within the class.
- A session_start() automatically initiated within the class.
- Can send 'Cache-Control:' header output within the class (fixes IE6 bug).
- Ability to retrieve a specific sessions expiration date and time.
- Retrieve current session life setting in seconds or minutes.
- Retrieve a numeric total of the number of active and inactive sessions in table.
- Facility to make assignment and retrieval of session variables easier.
- Has the ability to create manual URIs and links that include session name and ID.
- Has the ability to retrieve what the MySQL server version number is.
- An adequate form of encryption and decryption functions are included and used automatically when libmcrypt is not installed.

Security features:

- Standard user inactivity time-out handled automatically.
- Absolute user logoff time-out capability (session will be terminated no matter what after a number of designated minutes and seconds have elapsed).
- Ability to lock and unlock a particular session or all sessions. When a session is locked, it is immediately not available for use.
- User to session verification using IP address and browser information.
- Security level (code) clearance for each session or web page.
- Encrypt and decrypt as desired each session field.
- Encrypt and decrypt an extra session field to compare against original (to detect against possible tampering).
- Encrypt and decrypt the whole session data in the table (essentially obscuring session variable names in table). Can be used in combination with per session field encryption, resulting in double encryption security.
- A new encryption initialization vector is created every time values change.
- Ability to manually delete a particular session or all sessions.
- The users IP address and web browser is recorded as part of the session for tracing information.

Other features:

- Support for multiple language error and warning messages.
- Support of a default language as well as current active language settings.
- Basic or detailed (with SQL syntax) error and warning reporting.
- Buffered error and warning messages.
- Option for class to stop execution or not upon encountering an error and warning. Class can display errors and warnings automatically or control in your script.
- Can select font color and size separately for error and warning messages.
- The code has lots of comments and formatted within 82 characters wide.
- Full documentation (only provided in English) is included.
- Code use examples provided, including a basic authentication (login/logout) process.
- SQL text file provided for creating the MySQL session table.

  Classes of Lawrence Osiris  >  DB eSession  >  Download .zip .tar.gz  >  Support forum Support forum (9)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: DB eSession
Base name: db_esession
Description: MySQL based session management
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 8254 users
All time rank: 167
Week users: 1 user
Week rank: 2051 Down
 
  Groups   Freshmeat project   Rate classes User ratings  
  Trackback   Applications   Files Files  

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


  Freshmeat project  
Project record: db_esession
Popularity score: 53.5
Vitality score: 1.42

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (87.2%)
Good (85.3%)
Good (80.8%)
Sufficient (78.2%)
-
-
Sufficient (68.0%)
305
Month:
Not yet rated by the users

  Trackback links  
Link Description
Blog Articles Thank you for creating the useful DB eSession PHP class...
To Lawrence Osiris Thank you for creating the useful DB eSession PHP class which will help me manage session data...

  Applications that use this class  
No application links were specified for this class.
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
Plain text file class.DB_eSession.php Class The main class file
Accessible without login Plain text file config.DB_eSession.php Conf. Configuration file used to pass parameters to class
Accessible without login Plain text file emplogin.php Example Example page used to login employees
Accessible without login Plain text file employees.php Example Example page of employees restricted area
Plain text file errors.DB_eSession.php Class Error and Warning definitions used by class
Accessible without login Plain text file eSessions_table.sql Data Text file that contains the SQL to create the MySQL sessions table
Accessible without login Plain text file examples.php Example Examples of how to invoke various member functions
Accessible without login Plain text file guess.php Example A number guessing game showing use of class
Accessible without login Plain text file index.php Example Example home page of an authentication process
Accessible without login HTML file license.html Lic. The GNU GPL in HTML
Accessible without login Plain text file login.php Example Example page used to login members
Accessible without login Plain text file logout.php Example Example page of logging out members and employees
Accessible without login HTML file manual.html Doc. DB_eSession class manual in HTML
Accessible without login Plain text file members.php Example Example page of members restricted area
Accessible without login Plain text file monitor.php Example Session table monitoring and maintenance page
Accessible without login HTML file readme.html Doc. Brief setup instruction steps

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