Reply to Re: Concurrent session issues. Currently our website can have only one window open. Help me solve this.

Your name:

Reply:


Posted by Tony Marston on 10/06/06 08:46

After cloning the current window you are still using the current session by
default, so you have to press the "new session" link in order to create a
new session name with a new session id. After that the two windows are using
different sessions, so what happens in one window is invisible to the other.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

"cendrizzi" <cendrizzi@gmail.com> wrote in message
news:1160068372.828565.191020@i3g2000cwc.googlegroups.com...
> Interesting ideas. With your solution tony if I press open link in a
> new window (or tab) will it know to go to a new session? Or do they
> have to explicity choose to go to create a new session?
>
> On Oct 5, 10:33 am, "Tony Marston" <t...@NOSPAM.demon.co.uk> wrote:
>> Readhttp://www.tonymarston.co.uk/php-mysql/client-clones.htmlfor a
>> description of how I solved this very same problem.
>>
>> --
>> Tony Marston
>>
>> http://www.tonymarston.nethttp://www.radicore.org
>>
>> "cendrizzi" <cendri...@gmail.com> wrote in
>> messagenews:1160057473.202722.19300@i3g2000cwc.googlegroups.com...
>>
>> > Hi all,
>> > I've read some stuff on this but can't seem to come up with a solution
>> > that works right. I have a semi-mature (yet very large and robust)
>> > internal web application that currently only works with one window open
>> > at a time.
>>
>> > Maybe I'm abusing the use of $_SESSION but I have data entry processes
>> > split up in several steps (which is required since depending on what
>> > was put before determines what pages will be shown after). To store
>> > this information between the steps I use the session, which is the only
>> > way I know that this would be possible (uses arrays in arrays). So if
>> > I were to open up a window and start the data entry it would overwrite
>> > the last one.
>>
>> > So one thought was trying to create an instance id that that is
>> > randomly generated that is passed between the pages using a $_GET
>> > variable. Using this id I would create and reference custom session
>> > variables making sure each instance is completely unique. This seems
>> > to be consistent with what others have tried but I don't think it would
>> > work since if someone middle clicked on a page link it would open up a
>> > new tab (in firefox and IE7) with the same instance id with. There
>> > doesn't seem to me to be an easy way to ensure that each window in a
>> > browser has it's own, unique, instance.
>>
>> > Surely this isn't unique to me so how in the world can I ensure that
>> > each window/tab gets a unique id of some sort so that my session is
>> > unique for each one?
>>
>> > Lastly, if necessary, I wouldn't mind trying to suppress a new window
>> > but this is plagued with the same issues (how do I know it's a new
>> > window/tab?). I know this is not ideal but given the nature of the
>> > application this wouldn't be a big problem.
>>
>> > Thanks in advance.
>

[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

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