PHP GENERAL 45 RE PHP REFRESH PHP
Date: Tue, 8 Jul 2003 17:55:53 -0300

Subject: Re: [PHP] Refresh PHP
From: mauricio@no-spam (Mauricio)

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" (ralph@no-spam)
To: "'Mauricio'" <mauricio@no-spam>; "'PHP'" <php-general@no-spam>
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:mauricio@no-spam > 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" <ralph@no-spam>
> To: "'Mauricio'" <mauricio@no-spam>
> 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:mauricio@no-spam > > 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 >