note 50070 added to ref.session
| From: | beliexp at yahoo dot com | Date: | Thu, 17 Feb 2005 07:15:26 +0000 |
| Subject: | note 50070 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85149@lists.php.net to get a copy of this message | ||
This is a note for someone who posted this:
I'm having toubles using sessions on my local (XP)machine.
I'm using a loginscript that works fine on line but it won't work at home...
Right, I read on the session_start() section of the manual, from the user's notes, that this
problem happens in Windows because it doesn't keep the session id and opens a new one every
time you call session_start(). I've been where you are too. Annoying, uh? Well, as a solution
it gives you a few options:
1. You can always set the same id, which is a bit of a cheeky solution, but it works (
session_start('123456');)
2. You can pass the session_id from the first time you start a session through the URL or as a
hidden item in a form and then recover it with HTTP_GET_VARS or HTTP_POST_VARS, respectively.
3. There is another one I don't remember very well but is about changing the header options.
For this one you may go to the session_start() section to the user's notes.
Well, hope this can help
Good luck with your thing!!
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50070
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50070&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50070&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50070&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50070&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50070&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50070&report=yes
Search -- http://master.php.net/manage/user-notes.php