Hi,

The following situation:

a user accesses servlet1, a logon page is presented, a session is created (using 
session API with cookies) with a MaxInactiveInterval of lets say 5 min
th main page is presented: this main page includes an applet that shows if servlet2, 
which runs within the same JVM as servlet1, is still running: therefore the applet 
polls servlet2 using HTTP requests: it polls lets say every 10sec

The strange thing now is the session never ends? It seems that this polling keeps the 
session running: the polling is interpreted as user action.

Now why does this happen and want could be done to prevent it?

Is the sessionId cookie set within the applet?? Why does servlet2 within the same JVM 
interpret this session? It was created for servlet1. (sometimes sessions should be 
shared between two servlets: but not here).
And even if servlet1 woyld be polled this should not happen!

So I thnk the major question is: how does the applet have the sessionId cookie 
information?





Axel            Lannion/France

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to