RE: how to persist a session

2006-05-25 Thread Vikas Jain
what to write inside element in web.xml -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 6:40 PM To: Tomcat Users List Subject: Re: how to persist a session That's true and I've restled with the javascript or no javascript question my

Re: how to persist a session

2006-05-25 Thread charly
sday, May 25, 2006 3:09 PM Subject: Re: how to persist a session That's true and I've restled with the javascript or no javascript question myself a few times. I think with all the AJAX and web 2.0 stuff out there, it's getting so those cases are fewer and fewer. --David Peter C

Re: how to persist a session

2006-05-25 Thread Michael Echerer
Vikas Jain wrote: > Hi, > > I am using java server faces. My web server is Tomcat5.0. > > I want to persist my session that is the session should continue until user > logs out. I don't want to do this task through > 0 > > > > in web.xml. > > > > Any help will be highly appreciated... A

Re: how to persist a session

2006-05-25 Thread David Smith
That's true and I've restled with the javascript or no javascript question myself a few times. I think with all the AJAX and web 2.0 stuff out there, it's getting so those cases are fewer and fewer. --David Peter Crowther wrote: >>From: David Smith [mailto:[EMAIL PROTECTED] >>Option 3: Use a b

RE: how to persist a session

2006-05-25 Thread Vikas Jain
Users List Subject: Re: how to persist a session I'm pretty new in web design, but why can't you use cookies to do what you want? Will that work?? On 5/25/06, Peter Crowther <[EMAIL PROTECTED]> wrote: > > > From: Vikas Jain [mailto:[EMAIL PROTECTED] > > I want to

Re: how to persist a session

2006-05-25 Thread Mikolaj Rydzewski
Vikas Jain wrote: I am using java server faces. My web server is Tomcat5.0. I want to persist my session that is the session should continue until user logs out. Use HttpSessionActivationListener http://www.docjar.com/docs/api/javax/servlet/http/HttpSessionActivationListener.html -- Mikolaj

RE: how to persist a session

2006-05-25 Thread Peter Crowther
> From: David Smith [mailto:[EMAIL PROTECTED] > Option 3: Use a bit of javascript to refresh a small, invisible gif > image on a timed basis. Very good point. I'm too used to advising on accessible design, where the browsers may not run Javascript :-). - Peter -

RE: how to persist a session

2006-05-25 Thread Peter Crowther
> From: Lung Chan [mailto:[EMAIL PROTECTED] > I'm pretty new in web design, but why can't you use cookies to > do what you want? If you do, you have two approaches: - Store all the session data in the cookie, and pass that back and forth on each request and response. This eliminates the need to

Re: how to persist a session

2006-05-25 Thread David Smith
Because tomcat's sessions will timeout if left unattended long enough regardless of expiration date/time on a cookie. --David Lung Chan wrote: > I'm pretty new in web design, but why can't you use cookies to > do what you want? > > Will that work?? > > > On 5/25/06, Peter Crowther <[EMAIL PROTEC

Re: how to persist a session

2006-05-25 Thread David Smith
Option 3: Use a bit of javascript to refresh a small, invisible gif image on a timed basis. The session timeout can be short and the session will stay around as long as the browser windows is open or until the user clicks a logout link. --David Peter Crowther wrote: >>From: Vikas Jain [mailto:[

Re: how to persist a session

2006-05-25 Thread Lung Chan
I'm pretty new in web design, but why can't you use cookies to do what you want? Will that work?? On 5/25/06, Peter Crowther <[EMAIL PROTECTED]> wrote: > From: Vikas Jain [mailto:[EMAIL PROTECTED] > I want to persist my session that is the session should > continue until user > logs out. I do

RE: how to persist a session

2006-05-25 Thread Peter Crowther
> From: Vikas Jain [mailto:[EMAIL PROTECTED] > I want to persist my session that is the session should > continue until user > logs out. I don't want to do this task through > 0 > > > > in web.xml. You have no way of telling when a user closes a browser onto your application. Given that, an

how to persist a session

2006-05-25 Thread Vikas Jain
Hi, I am using java server faces. My web server is Tomcat5.0. I want to persist my session that is the session should continue until user logs out. I don't want to do this task through 0 in web.xml. Any help will be highly appreciated... With Thanks And Regards Vikas Jain --