Problem with session on first page loaded
| From: | Jordi Canals | Date: | Fri, 02 Jul 2004 09:14:28 +0000 |
| Subject: | Problem with session on first page loaded | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-189519@lists.php.net to get a copy of this message | ||
Hi all,
I have an extrange problem with the session cookie:
In all my pages there I have this two lines to start the session:
session_name('jcwse');
session_start();
When I access my website, at any page, everytyhink works OK, and the session cookie is set with no problem except for links.
In the fist page I aceess, all links are appended with the session ID. I mean that in every link, the ?jcwse=da22311212 ... is appended. This occurs just on the load of first page (not any else). If I reload the page, then links are formed correctly with no session ID (And sessions works perfect).
This problem only arises on my ISP hosting (Linux+Apache 1.3) and does not show on my devel computer (Windows+Apache 2.0). I've been searching the manual, but found no explanation about that.
Any help will be really welcome.
Regards,
Jordi.