Re: Session registration.

From: Date: Fri, 18 Oct 2002 16:03:31 +0000
Subject: Re: Session registration.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120530@lists.php.net to get a copy of this message
On the page you want to access the variable: <? session_start(); echo $_SESSION['Requested_url']; ?> Note: any pages in between the page you SET the session var and the page you want to ACCESS the var need to also maintain session (session_start()) and you need to pass the session around with cookies and/or the url and/or trans-sid. Justin on 19/10/02 9:54 AM, Renato Lopes (renatolopes@mac.com) wrote: > Hi! > > Can anyone help? > > I am running PHP 4.2.3 and have set the following: > > session_start(); > > > $_SESSION['Requested_url']=getenv("SERVER_NAME").getenv("REQUEST_URI"); > > How do I go about accessing this variable on a different page, with > register_globals disabled? > > Thanks > > Renato >

« previous php.general (#120530) next »