[PHP] identify not only browser, but even browser windows with session

2003-06-24 Thread dorgon
hi,

does anybody know how I could identify the browser window?
my problem is, that i have a application framework and I want
to use multiple windows providing different GUIs.
Each window should be able to send a request and send a proper
session key or unique key which identifies the application window.
I cannot use get/post parameters, because the framework works
in a different way and uses the path info. i also don't want
to use the path info to pass through the window key.
can cookies be stored for single browser instances (windows)?
does the browser send some information that could be uses?
thanks in advance,
dorgon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] identify not only browser, but even browser windows with session

2003-06-24 Thread Ernest E Vogelsinger
At 10:58 24.06.2003, dorgon said:
[snip]
can cookies be stored for single browser instances (windows)?
does the browser send some information that could be uses?
[snip] 

Short answer - no, and no.

Cookies are stored browser-wide, and if the user presses Ctrl+N (or else)
to open a new window you would never detect it. Even using some
sophisticated techniques like session access counters, session serial
numbers, etc, are not guaranteed to work since the browser may have cached
the page contents and simply _locally_ copied it to the new window, not
issuing a new request.

However you may use a serial number in session data that is incremented
with each request. Incorporate this number in any form or session-based
link to have the browser transmit it back to you. Then compare if the
serial number matches the expected vale; if not it's a reload and you can
proceed as seems fit.

However you don't have a chance to recognize if the reload comes from
simply a page reload, or from a window clone.

BTW - this is the reason I have switched off session cookies at my servers.
Having the SID available allows to run more than one session from a single
browser instance.

HTH,

-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php