How To Use Sessions

Apr 18, 2014

suppose a user logged in... after some time he want to get back to homepage...okk but suppose i want to get back to previous page by clicking back button on browser...but i dont want to go to login page until and unless i invalidate session...so wat settings i have to do on browser...so that i dont redirect to login page directly...

View Replies


ADVERTISEMENT

Servlets :: Sessions Within Same War

Aug 14, 2014

Suppose we have two servlets runing inside same war on same server. When user access servlet A and create a session, he then open another tab or browser to access servlet B (session created by servlet A still exist). Inside servlet B, does

request.getSession()

return the session created by servlet A ?

View Replies View Related

JSP :: Making Sessions To Not Expire?

May 30, 2006

how this is done using session.setMaxInactiveInterval(); at first, i did not set anything but it expires anyway.so i'm trying not to let the session expire.session.setMaxInactiveInterval(0) does not work.

View Replies View Related

Servlets :: Communication Sessions Between Two Applications?

Jul 22, 2014

I'm deployed application A and application B in TOMCAT server applications, the U1 user enters into the application A, he authenticates and generates a call to a page of the app B. As I was able to access the session of user U1 en A from B, it could have a single session.

View Replies View Related

Servlets :: How Do Sessions Work In General

Jan 17, 2015

Okay I am new to web-programming in general and am confused about how sessions work-:

1) Are sessions stored only on the client computer ? If so then if cookies are disabled then if browsers only store the session how are they able to remember the exact JSESSIONID ? Also how does the server (like Tomcat) remember which JSESSIONID belongs to which user ? Where does it store that information ?

2) If the server also stores the session information then how fast does it become out of date ?

3) If a client has cookies disabled does the server maintain a key-value pair of the IP and the session-id, so that if the same client logs in then the same session-id will be appended ?

4) When does the web-container make the decision of using cookies or the encodeURL() method to embed the session info ?

I use Tomcat 8.0 for now.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved