note 26690 added to ref.session

From: Date: Sat, 09 Nov 2002 01:06:06 +0000
Subject: note 26690 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-39207@lists.php.net to get a copy of this message
hey , i was found a problem when i use the session. i was try to use the session with many subdomains you have some ways to make thats 1 - POST/GET the session_id(); between the subdomains and use session_id($_GET[theid]); b4 start_session(); 2 - add the session_id in cookies 3 - the smart one u edit php.ini and add session.cookie_domain "YourDomain.Com"; /* this function is smart one ini_set(); with PHP 4 */ or if you dont have Permission to do thats all you have to do b4 session_start(); add ini_set('session.cookie_domain',"YourDomain.Com"); like this session will work with all the subdomains smart and easy one Mina -- http://www.php.net/manual/en/ref.session.php http://master.php.net/manage/user-notes.php?action=edit+26690 http://master.php.net/manage/user-notes.php?action=delete+26690 http://master.php.net/manage/user-notes.php?action=reject+26690

« previous php.notes (#39207) next »