note 50070 deleted from ref.session by betz
| From: | betz@php.net | Date: | Fri, 08 Jul 2005 09:17:11 +0000 |
| Subject: | note 50070 deleted from ref.session by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91657@lists.php.net to get a copy of this message | ||
Note Submitter: beliexp at yahoo dot com
----
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!!