ID #347

How do I put PHP sessions into a database instead of the default files-based method?

Applies to: Grid System

The quickest method to steering your PHP sessions into a database is by using ADODB's Session 2 class as your PHP save handler.

All you need to do is:

  1. Download ADODB into you account.
  2. Create a short script to configure the class (see below for an example).
  3. Edit your php.ini. Set session.save_handler = user and auto_prepend_file to the script you just created.

Last update: 2010-10-05 16:10
Author: FAQ Admin
Revision: 1.2

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ

Comment of Anonymous:

Added at: 2007-10-07 12:49