note 73313 deleted from function.session-start by nlopess

From: Date: Fri, 23 Feb 2007 12:26:43 +0000
Subject: note 73313 deleted from function.session-start by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123741@lists.php.net to get a copy of this message
Note Submitter: ---- SESION LOST WHEN OPEN SUBDOMAIN If you have problem with sesions and subdomains, for example you have started sesion on domain.com and your sesion doesnt work on something.domain.com There is a solution: on main domain eg. domain.com <?php session_start(); $sesja = session_id(); setcookie('sesja', "$sesja", time()+25920000, '/', '.hellfun.net'); ?> and on subdomain eg. something.domain.com <?php session_id($sesja); session_start(); ?>

« previous php.notes (#123741) next »