PHP Sessions Management Class handler that stores session data in MySQL

Discussion in 'PHP' started by astkboy2008, Dec 6, 2009.

  1. #1
    hello,
    the Sessions problems is too many
    how can i solve it?
    its easy this class can stores session data in MySQL.
    about the class
    This class implements a new PHP session handler that can replace the default PHP session handler by storing session data in a MySQL database table.
    The session handler works just by creating an object of this class. After that, applications just need to use the same code to store and retrieve session variables.

    how i can use it
    its easy
    just include it in the page
    require "../class.dbsession.php";
    PHP:
    and start new one
    $session = new dbsession();
    PHP:
    in the end of the page you should end the session
    $session->stop();
    PHP:
    and how i can add a vaule of a session?
    its easy

    use this
    $_SESSION["name"] = "value";
    PHP:
    download the class+exampple
    http://www.jooria.com/downloads/433/PHPsessions-6-12.zip
    Code (markup):
     
    astkboy2008, Dec 6, 2009 IP