[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: Page # 2 Can anyone tell me where I'm going wrong, works fine of test servers, etc., only screwed up when site was lauched. Thanks in advance ... Regards Charlie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session variables
Dear Vincent, 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: Page # 2 Can anyone tell me where I'm going wrong, works fine of test servers, etc., only screwed up when site was lauched. Thanks in advance ... Regards Charlie. -- 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
Re: [PHP] [Solved] session variables
Thanks for the suggestions, turned out to be a server setting the hosting compnay had set in the php.ini, see below: - session.cookie_domain = inweb.net.uk// this points to the hosting companies url by adding the following resolved the problem: - ini_set("session.cookie_domain", $domain_name) Works a treat now, the server was saving the session cookie for the wrong url and hence when the secoudn page was called in the same browser it wa not able to collect up the session variables as the domain names were different. Thanks again, 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: Page # 2 Can anyone tell me where I'm going wrong, works fine of test servers, etc., only screwed up when site was lauched. Thanks in advance ... Regards Charlie. -- 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] Re: session variables
Thanks for the suggestions, turned out to be a server setting the hosting compnay had set in the php.ini, see below: - session.cookie_domain = inweb.net.uk// this points to the hosting companies url by adding the following resolved the problem: - ini_set("session.cookie_domain", $domain_name) Works a treat now, the server was saving the session cookie for the wrong url and hence when the secoudn page was called in the same browser it wa not able to collect up the session variables as the domain names were different. Thanks again, Regards Charlie. "Charles Collins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] 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: Page # 2 Can anyone tell me where I'm going wrong, works fine of test servers, etc., only screwed up when site was lauched. Thanks in advance ... Regards Charlie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php