In message <4177C422.7030606@xxxxxxxxxxx>, raditha dissanayake <jabber@xxxxxxxxxxx> writes >Reinhart Viane wrote: > >>in a page checkuser i do this after the user is logged in: >> PHP Code >> // Register some session variables! >> session_register('userid'); >> $_SESSION['userid'] = $userid; >> session_register('first_name'); >> $_SESSION['first_name'] = $first_name; >> session_register('last_name'); >> $_SESSION['last_name'] = $last_name; >> session_register('email_address'); >> $_SESSION['email_address'] = $email_address; >> session_register('user_level'); >> $_SESSION['user_level'] = $user_level; >> >> >You should only save the userId in the session, everything else should >be retrieved from your database using that id. I normally do as you have suggested here - but why do you suggest that this method is better? -- Pete Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php