>
>
>>>    1. the session object maps to a browser-window (*not* to a user!). 
>>>    Is this correct?
>>>
>>> The session is associated with a particular browser, but not with a 
>> particular window/tab within the browser (i.e., two windows in the same 
>> browser will share the same session). Different browsers on the same 
>> machine or different machines will have different sessions, even with the 
>> same user.
>>
>
> I see. Is it possible at all to identify browser windows?
>

I don't think so with the session. If the requests are made via Ajax, you 
could include a unique Javascript variable on the page and return it with 
each Ajax request to uniquely identify the page. For regular post requests, 
you might include a hidden form field with a unique ID, and for regular get 
requests, you could include a unique query string token in links that are 
clicked on the page. Another option might be sending a special cookie, and 
have Javascript on the page set the value of the cookie to a unique ID 
before any action on the page generates a new request (i.e., when any links 
are clicked or forms submitted). On the server, you could check the value 
of the cookie to see which page generated the request.

Anthony 

Reply via email to