You are here: Re: Sessions... « PHP Programming Language « IT news, forums, messages
Re: Sessions...

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация