Re: [PHP] session vars and frames
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session vars and frames
hi all, 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: ?php if (!isset($session_loginname)) { echo you are not a member; } else { echo login: $session_loginname; } ? However, my leftFrame page keeps on displaying you are not a member So I was wondering: is there something with sessionvariables and frames which I don't know?? If anybody has any ideas I would be happy to hear them. regards Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -
Re: [PHP] session vars and frames
Are you passing the session ID around in the URL, or in cookies? Justin French on 28/06/02 6:28 PM, Wilbert Enserink ([EMAIL PROTECTED]) wrote: hi all, 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: ?php if (!isset($session_loginname)) { echo you are not a member; } else { echo login: $session_loginname; } ? However, my leftFrame page keeps on displaying you are not a member So I was wondering: is there something with sessionvariables and frames which I don't know?? If anybody has any ideas I would be happy to hear them. regards Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session vars and frames
hmmm, i'm not passing anything around, at least not on purpose. Wilbert - Original Message - From: Justin French [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Friday, June 28, 2002 11:14 AM Subject: Re: [PHP] session vars and frames Are you passing the session ID around in the URL, or in cookies? Justin French on 28/06/02 6:28 PM, Wilbert Enserink ([EMAIL PROTECTED]) wrote: hi all, 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: ?php if (!isset($session_loginname)) { echo you are not a member; } else { echo login: $session_loginname; } ? However, my leftFrame page keeps on displaying you are not a member So I was wondering: is there something with sessionvariables and frames which I don't know?? If anybody has any ideas I would be happy to hear them. regards Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php