PHP sessions, using MYSQL (on php.ini)

Discussion in 'Server Operation' started by stormrider, Oct 6, 2006.

  1. stormrider

    stormrider New Member

    Hello,

    I'm wondering if it's possible to make PHP use MySQL instead of files to store the sessions from all the sites i host (things like changing session.save_handler on php.ini).

    I haven't found anything on google :( and i would appreciate if someone can help me.

    Thanks.
     
  2. sjau

    sjau Local Meanie Moderator

    A simple search on google for "php mysql session" returned quite a few hits that seem to hold information...
     
  3. stormrider

    stormrider New Member

    sjau,

    I guess you are talking about how to implement mysql session storage for a single script or program.

    When you start a sessions (session_start()), php store its information (session varibles) on /var/lib/php5 (depending of your conf) using files. What i'm trying to do is to store this information on MySQL.
     
  4. falko

    falko Super Moderator ISPConfig Developer

  5. stormrider

    stormrider New Member

Share This Page