note 73354 deleted from function.session-start by nlopess
| From: | nlopess@php.net | Date: | Fri, 23 Feb 2007 12:26:57 +0000 |
| Subject: | note 73354 deleted from function.session-start by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123742@lists.php.net to get a copy of this message | ||
Note Submitter: kamil at ultrahost dot pl
----
SESSION LOST WHEN OPEN SUBDOMAIN
In before entry i made mistake, there is better code:
You need just to start sesion like this:
if (isset($sesja)) {
session_id("$sesja");
}
session_start();
$sesja = session_id();
setcookie('sesja', "$sesja", time()+25920000, '/',
'.hellfun.net');
Is much better :-) I hope now without errors