Re: sessions variables and meta refresh
| From: | hentis at twilyt dot com | Date: | Wed, 11 Oct 2000 10:12:55 +0000 |
| Subject: | Re: sessions variables and meta refresh | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19558@lists.php.net to get a copy of this message | ||
Hmmm .. this is not good ...
damnit ..
basicaly what I'm doing is this
<?
switch($login){
case "yes":
auth is fine .. go to next page
break;
case "no";
display problems with auth etc etc
break;
default:
login stuff here with forms
break;
}
?>
that is a very basic. after the authentication is done I generate a session_ID
and register it.
then on all the other pages I check for the session_ID as authentication.
how can i get the page to redirect or refresh to the next page without loosing the
cookie information ?
Henti
On Wed, Oct 11, 2000 at 12:09:31PM +0200, Martin wrote:
> Hi Henti,
>
> sessions works with cookies. And after a refresh (no matter if you use
> Header:Location or Meta-Refresh) the cookies are not available. The
> cookies are available on the NEXT page you call (try it), and with a
> Header:Location or refresh the browser thinks, you are on the SAME page.
>
> Martin
>
>
> hentis@twilyt.com wrote:
> >
> > I tried replacing meta with header(location) and still the same things happens ..
> > I losse the values of sessions once it redirects ...
> >
> > this is strange ..
> >
> > I must say I'm not sending cookies around .. but i have cookies enabled ..
> >
> > Henti
> >
> > On Wed, Oct 11, 2000 at 11:34:02AM +0200, hentis@twilyt.com wrote:
> > > hi all
> > >
> > > I'm using <meta http-equiv=\"Refresh\" content=\"0;
> > > URL=$URL\"> to refresh to a new page after authentication
> > > I register the variables fine .. and I can access them fine .. but once the page has
> > > redirected the session vars are still registered
> > > but does no longer contain the values it had previosly ..
> > >
> > > Does anybody know why this could happen ?
> > >
> > > henti
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net