Actually I don't know how to do sessions properly in PHP :oops: I normally generate 128 numbers at random, check whether that combination of numbers currently exists in the users table, and if it doesn't it gets stored in the user's row in the users table. The session ID gets passed from page to page in the URL and is retrieved with $_GET[session]. The first thing any page does is connects to the database and attempts to match the session ID with a user.
I know this isn't particularly secure. When I develop something that requires a higher level of security I'll learn how to do it properly :-)
--
moto