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" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> I would do
> script 1 :
> $_SESSION['test'] = "hello world";
>
> and in script2 :
> print($_SESSION['test']);
>
>
> vincent
>
> -----Original Message-----
> From: Charles Collins [mailto:[EMAIL PROTECTED]
> Sent: mardi 20 avril 2004 17:44
> To: [EMAIL PROTECTED]
> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to