Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Differenciating between Http Request  RSS feed

 
yogesh kalaskar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to know is there any way for the web app, to differentiating between incoming requests of the same session. (By pressing Ctrl+N user can open the new browser and hense session can be same) or even if he open altogether different browser then session is also same.

How to solve it. I have tried it by req.GetSessionId() remotePort, remoteAddr bu in vain,

Thanks in Advance

Yogesh G K
[ September 25, 2007: Message edited by: yo ka ]
 
Tarun Yadav
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't possible, you simply can't tell if the user is working with one window of a browser or has spawned several.

But why would you want to do this in any case? Your code shouldn't need to differentiate between or limit your user to one browser window.
 
Amol Nayak
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi yo ka please see this,
Naming Policy

As of you question

Yogesh:
(By pressing Ctrl+N user can open the new browser and hense session can be same) or even if he open altogether different browser then session is also same.


The behaviour is browser dependent, as far as the second point is concerned i am afraid its not true, two different browsers wont share session.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!