|
Posted by Gordon Burditt on 12/16/05 04:25
>>>>PHP sessions do work very well - except for one problem I found.
>>>>
>>>>MS IE kept using a different session ID for every page it requested !
>>>>
>>>>
>>>>I solved this by creating my own session ID and storing it in a
>>>>cookie, so I could get it back and force the same session ID each
>>>>time.
>>
>>
>> I have to wonder WHY this would fix the problem. What is better
>> about YOU creating the session ID and storing it in a cookie vs.
>> PHP creating a session ID and storing it in a cookie? Perhaps
>> someone is blocking the cookie 'PHPSESSID' and leaving others alone?
>
>Yes, I know what you mean, as far as I understand, PHP just uses a
>cookie to store the session ID anyway.
It does have a fallback strategy of putting the session ID in the
URL, but if cookies seem to be working, that's what it will use.
>But, I found that MS IE users were being treated to a new session ID
>for every page requested...
>
>I fixed it, but I shouldn't have needed to ?
My comment was more along the lines of:
Why the heck did your fix work? And if it did, why did PHP fail?
Gordon L. Burditt
[Back to original message]
|