RE:[PHP] sessions...how to use not clear?

From: Date: Mon, 22 Mar 2004 23:42:48 +0000
Subject: RE:[PHP] sessions...how to use not clear?
Groups: php.general 
Request: Send a blank email to php-general+get-181184@lists.php.net to get a copy of this message
as long as your usernames are unique you should never have a problem. (assuming everything else works as planned.) it should... i want to use sessions for a login system and stuff too but i want it to check to see if the person is logged in before going to the login section... if the session isnt valid then require a login... is this code valid?? <?php if(session_start($name)) {/*do whatever if person is logged in already*/ } else { /*do whatever if session doesnt exist*/ } if that does work then all i need to do is figure out how to do a session_distroy() to delete it after logged out... any ideas?

« previous php.general (#181184) next »