note 26690 deleted from ref.session by maxim
| From: | maxim@php.net | Date: | Sat, 09 Nov 2002 05:05:44 +0000 |
| Subject: | note 26690 deleted from ref.session by maxim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39210@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