Need help with PHP4/Sessions

From: Date: Wed, 04 Oct 2000 18:45:32 +0000
Subject: Need help with PHP4/Sessions
Groups: php.db 
Request: Send a blank email to php-db+get-3327@lists.php.net to get a copy of this message
Hello all! I am having trouble making a PHP script that uses sessions and a mySQL database. Let me explain why. I am building a login-script. A successful login should result in letting the user come to a page and also start a session that will keep track of what the user is "doing". And an unsuccessful one - well you know what should happen... I check the login values against a mySQL db. Well I am going crazy with this session handling - it is not coming my way. I can login - logout. With different user. Then if I try with a user which I already have logged in/out with I can't get in again. Why? Logout takes care of the "session_destroy"-thing. If I don't use logout then regardless of what I log in with the user that first logged in stays logged in. Please help! Mattias -- mattias.hedman@popwire.com web developer

« previous php.db (#3327) next »