Re: session variables

From: Date: Tue, 20 Apr 2004 16:39:43 +0000
Subject: Re: session variables
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-184026@lists.php.net to get a copy of this message
Does page1 call page2? Or do you open another browser window and open page2? My understanding is some browsers to NOT transfer the same session info to another borwser window. > Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get > the damn thing working. > > Regards, > Charlie. > > "Vincent Dupont" <Vincent.dupont@ausy.be> wrote in message > news:B25AE43B1720D711A8B300508BEF38BB0BDFF0@osexc.ausy.be... > I would do > script 1 : > $_SESSION['test'] = "hello world"; > > and in script2 : > print($_SESSION['test']); > > > vincent > > -----Original Message----- > From: Charles Collins [mailto:sales@ayrmer.co.uk] > Sent: mardi 20 avril 2004 17:44 > To: php-general@lists.php.net > Subject: [PHP] session variables > > > I have two test files running on a server, which is giving me a headache, > due to the fact the session variables are not been maintained across the > two > pages. > > The server is running ... > > PHP Version = 4.0.5 > register_globals = ON > Session Support = Enabled > session.auto_start = Off > session.cache_expire = 180 > session.cache_limiter = nocache > session.cookie_domain = inweb.net.uk > session.cookie_lifetime = 600 > session.cookie_path = / > session.cookie_secure = Off > session.entropy_file = no value > session.entropy_length = 0 > session.gc_maxlifetime = 1440 > session.gc_probability = 1 > session.name = PHPSESSID > session.referer_check = no value > session.save_handler = files > session.save_path = /tmp > session.serialize_handler php > session.use_cookies = On > > The two script files are as follows: - > > Page #1: > > <? > session_start(); > session_register("test"); > $test = "Hullo World"; > print $test; // prints "test" > ?> > > Page # 2 > > <? > session_start(); > print $test; // prints nothing, zip! > ?> > > Can anyone tell me where I'm going wrong, works fine of test servers, > etc., > only screwed up when site was lauched.

« previous php.general (#184026) next »