I have tried to implement the custom session handler described by Ying Zhang. I am having problems propogating session variables beyond the initial write.
My environment is as follows: PHP 4.1.6, mysql, Dreamweaver 6.1
My initial page is a log on, that requests name and password. I initiate the page with the include for session_mysql.php followed by session_start(). I register the session variables, and assign values from the log on form (name & password).
I can see that the values are set and written to the DB (querying the DB via phpMyAdmin). However, I am unable to access the variables on subsequent pages.
My second page starts with the session_mysql.php include and session_start(). I do not register the variables on subsequent pages, I simply reference them as $HTTP_SESSION_VARS['variable_name'] --- no luck. I am not getting anything back.
Do I need to make reference to a specific session ID (by passing a URL value, etc.)?
Any help would be appreciated --- I am dead in the water without the user authentication and restriction logic that I need to build throughout the site.