That depends on which server u are using. If u are using the application
server, that in turn process the request at different server, then No
problem since the session set as a cookie in the client machine with that
server name. But if you are using different webserver with servlet engine
plugged in to that then you can't maintain the sessions. Because the session
information is with respect to the server. Other server can't access that
information. Sometimes back I got this problem and after that I changed
everything in to form-hidden parameters and also I used request dispatcher
method.



-----Original Message-----
From: Jonnalagadda Pradeep.
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 28, 2000 1:50 PM
To: [EMAIL PROTECTED]
Subject: Re: session maximum inactive interval


i have an application.
I create a session for a user after successfull login.All the subsequent
requests by the user might or might not go to the same web server
due to load balancing schema.
Do the other servers maintain the session.
pradeep.


> -----Original Message-----
> From: Ibrahim, Sultan (IndSys,MKT) [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, November 28, 2000 12:22 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: session maximum inactive interval
>
> Which servlet engine you are using. I think, You can set it directly in
> the
> server settings.But if your request processed at two servers(dual server)
> simultaneously, then the information set at the client machine will be
> lost.
> But otherwise you can set at the server settings itself.
>
>    This method is available at which jsdk version? In jsdk2.0 this is not
> available.
>
> -----Original Message-----
> From: Bartsch Axel [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 28, 2000 12:29 PM
> To: [EMAIL PROTECTED]
> Subject: session maximum inactive interval
>
>
> Hi members,
>
> I am using a HTTPSession object running with cookies.
> I am setting the session maximum inactive interval to 1 hour by using the
> following code:
>
> session=req.getSession(true);
> session.setMaxInactiveInterval(3600);
>
> JAVA servlet API:
> public void setMaxInactiveInterval(int interval)
>
>      Specifies the time, in seconds, between client requests before the
> servlet container will invalidate this session. A
>      negative time indicates the session should never timeout.
>      Parameters:
>           interval - An integer specifying the number of seconds
>
> But when testing the session only stays alive for a couple of seconds: the
> maximum I achieved was 9 sec??
> and the alive time is not always the same.
>
> Does anybody know more about this and can help me?
>
>
>
> 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
>
> __________________________________________________________________________
> _
> 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

___________________________________________________________________________
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

___________________________________________________________________________
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