Welcome to WebmasterWorld Guest from 126.96.36.199
In my old system sessions where recorded in a database usign a combination of user_agent, IP and a timeout to follow a visitor around the site, trying to avout proxy and NAT issues. Not a perfect system, but good enough for most purposes and more robust then cookies and less intrusive then query strings.
Could I use PHP session variables using my own session tracking mechanism? In other words, can I get my session ID from my database and forward it to the PHP session handler and access ressources from that session?
I want to take advantage of the resource savings that come with storing things like database connections and file handles in sessions variables.
How can I get the current session ID and how can I set it?
Anyway, the zend tutorial mentioned is a decent read and can be found on the PHP manual page for session_set_save_handler() [php.net].
What I need is a way of injecting my own sessionid into the php session system.
Something like getNewSessionID(), and LoadSessionWithThisID() if you know what I mean?