Re: Wierd session problem.
| From: | Thomas Deliduka | Date: | Wed, 05 Jul 2000 16:33:05 +0000 |
| Subject: | Re: Wierd session problem. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5000@lists.php.net to get a copy of this message | ||
I found it interesting that on 7/5/00 12:18 PM Thomas Deliduka said:
> I found it interesting that on 7/5/00 11:56 AM TomHenry said:
>
>> Reminder -- the SID constant _is_ set the _first_ time you view the page
>> (if an old cookie is not available ;-). The second time, if the session
>> cookie was successfully set during the first page view, the SID constant
>> will NOT be set.
>>
>> It _really_ is in the docs too.
>
> I agree with you that it's in the docs. I just simply find it the other way
> around. I have a test script which I have used to demonstrate another
> problem I'm having with posting a form to a session and when I use the
> syntax: echo SID; it always prints out the SID even though the cookie is set
> correctly.
Here... if you don't believe me. go here:
http://216.235.251.8/login.phtml
Initially you can just enter in anything you wan. it will post to itself,
the session is started and the phpsessid variable is blank.
Then put anything else in the user and password fields and submit again.
You'll see the phpsessid populated with the previous ID but when the
session_start is called, a new ID is created and in the middle when I echo
SID; it displays the string.
How do I know that the cookie is being set? Well, I look in my cookies.txt
file and find the cookie listed. (some may need to quit the browser before
seeing the cookie in the file).
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/