Ralph, Before anything, I would like to thank you for the time you are spending with my problem!
Ok. I changed using $_SESSION and the problem still happens. I printed both, $_SESSION and $HTTP_SESSION_VARS and they are the same... not the current user, but the last logged. It's funny that in the next page, after login, if I print $_SESSION or $HTTP_SESSION_VARS they are right, but when I call another page (using a link), like some report, it appears the wrong user. All pages has the same header, setting no cache... any ideas? Thank you Mauricio Valente ----- Original Message ----- From: "Ralph Guzman" <[EMAIL PROTECTED]> To: "'Mauricio'" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 6:57 PM Subject: RE: [PHP] Refresh PHP > I though you were passing the variable through the url. If you have this > stored in a session, then try replacing $_GET with $_SESSION > > -----Original Message----- > From: Mauricio [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 1:56 PM > To: 'PHP' > Subject: Re: [PHP] Refresh PHP > > Doing this, it works. The variable 'url_variable' is changed when it > pass > over the if. But I don't want to use a get variable, it could be easily > changed by the users... its my problem... > > Maurício Valente > > ----- Original Message ----- > From: "Ralph Guzman" <[EMAIL PROTECTED]> > To: "'Mauricio'" <[EMAIL PROTECTED]>; "'PHP'" > <[EMAIL PROTECTED]> > Sent: Tuesday, July 08, 2003 4:05 PM > Subject: RE: [PHP] Refresh PHP > > > > How about: > > > > if($_GET['url_variable'] != $url_variable){ > > $url_variable = $_GET['url_variable']; > > session_register('url_variable') > > } > > > > > > -----Original Message----- > > From: Mauricio [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 08, 2003 11:14 AM > > To: PHP > > Subject: Re: [PHP] Refresh PHP > > > > Hello Ralph, > > > > Actually, after calling session_destroy() I reset those variables > > assigning > > an empty value like you said. But it still doesn't work. I did a test > > after > > destroying session variables, printing them. They are empty. > > > > Another weird thing is that when a login as "joao" them logoff, > exclude > > IE > > cache, going in Tools >> Internet Option..., and login again with > > another > > user, this way the variable are printed correctly. > > > > It happens in any windows version (95,98,ME,2K,XP) using IE 6.0 and > > Netscape > > 7. > > > > > > > > ----- Original Message ----- > > From: "Ralph Guzman" <[EMAIL PROTECTED]> > > To: "'Mauricio'" <[EMAIL PROTECTED]> > > Sent: Tuesday, July 08, 2003 2:11 PM > > Subject: RE: [PHP] Refresh PHP > > > > > > > Rather than using session_destroy() reset the session variable by > > > assigning it an empty value. For example, lets say your url looks > > > something like this: > > > > > > http://www.mydomain.com/?url_variable=Mauricio > > > > > > then do the following: > > > > > > if($_GET['url_variable'] != $url_variable){ > > > $url_variable = ""; > > > session_register('url_variable') > > > } > > > > > > > > > -----Original Message----- > > > From: Mauricio [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, July 08, 2003 7:02 AM > > > To: PHP > > > Subject: [PHP] Refresh PHP > > > > > > Hi people! > > > > > > Did anyone get this situation? > > > > > > I'm creating a Site that uses 3 session variables. One of them I > > always > > > print at the top of the page, it's the name of the user. There is a > > link > > > that calls the function session_destroy(). Everytime that I follow > > this > > > link > > > and log in with another user, that session variable printed doesn't > > > change, > > > but if I press F5 in IE or Netscape them it brings the right user. I > > > can't > > > make the page return the current user login, it always came with the > > > last > > > user logged. I tried to add some headers to set no cache in all php > > > pages, > > > but it doesn't work. > > > > > > Anyone can help me??? > > > > > > Thanks > > > > > > PS: Sorry about my poor english... > > > > > > > > > Maurício Valente > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php