Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session in servlet

 
jak lodhi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends ,
tell me when we open mail ID (inbox) , if we copy addressbar string and paste
into another browser's address bar then it gives invalid session. why it does not open same page again.

i want to implement into my web application how should i implement ?

tell me how it happen ?
 
dema rogatkin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's expected behavior when a session is cookie based. Cookie it's something hidden for you browser sends to server and servlet container uses it to maintain session. If you would like to keep session copying URL from address bar of one browser to an address bar of other browser, then you can try to use session based on URL overwrite mechanism. Check your servlet container doc how to enable it. In this case URL will include session token and you can continue work on other instance of a browser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic