wood burning stoves 2.0*
The moose likes Servlets and the fly likes session in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "session in servlet" Watch "session in servlet" New topic
Author

session in servlet

jak lodhi
Greenhorn

Joined: May 16, 2006
Posts: 6
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

Joined: Oct 09, 2002
Posts: 294
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.


Tough in space?, <a href="http://tjws.sf.net" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="http://mediachest.sf.net" target="_blank" rel="nofollow">Check it here.</a><br /><a href="http://7bee.j2ee.us/book/Generics%20in%20JDK%201.5.html" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="http://7bee.j2ee.us/bee/index-bee.html" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="http://7bee.j2ee.us/addressbook/" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="http://searchdir.sourceforge.net/" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session in servlet
 
Similar Threads
JCIFS
hibernate session
This weeks giveaway
Only allow one instance of an App
session using jsp