Reply to Re: PHP Session ID problem

Your name:

Reply:


Posted by Tom Peel on 02/18/06 12:18

MaKroZ wrote:
> On Fri, 17 Feb 2006 10:39:45 +0100, Tom Peel wrote:
>
>
>>if a
>>user accesses application X from two browser sessions, these sessions
>>will still share data?
>
>
> Actually, two opened browser windows don't mean two different sessions.
> Browsers usually have one space for storing cookies per pc per user
> profile, but not per opened window. So, yes, these "sessions" will still
> share data.
>
> As you mentioned, you can use URL based session IDs because each window
> can keep unique URL in its own address bar. I haven't read the manual
> about it too much. However, as I know, if the cookies can not be used, PHP
> will use URLs instead. You just have to disable cookies... at least for
> session IDs.
>
> As for me, if it's so necessary to work in two or more different windows,
> I would rather review the application design then mess up with PHP
> sessions.
>

It's more of a hypothetical question. The application in this case
resets the session variables when the user completes a transaction, so
the question is, would you expect the data the he has started to input
in a second browser to be reset as well? It's undefined behaviour.

T.

[Back to original 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

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