Re: session vars and frames

From: Date: Tue, 02 Jul 2002 06:12:16 +0000
Subject: Re: session vars and frames
Groups: php.general 
Request: Send a blank email to php-general+get-104853@lists.php.net to get a copy of this message
>>>> I'm registering if people are logged in. The login page is situated in >> the >>>> mainFrame. >>>> Now in my leftFrame I want to put the status (i.e. "you are logged in as >>>> .....") >>>> >>>> When people are succesfully logged in I register their name as >>>> session_register('session_loginname'); >>>> I then refresh the leftFrame. >>>> In the page to be displayed in the leftFrame I put: >>>> You also need to do: session_start(); in this leftFrame page (URL)... Otherwise, the leftFrame page (URL) has no idea that you are using sessions. >>>> <?php if (!isset($session_loginname)) >>>> { >>>> echo "you are not a member"; >>>> } >>>> else >>>> { >>>> echo "login: $session_loginname"; >>>> } >>>> ?> -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#104853) next »