RE: What happens when our session expires?
Hi Graig, Most Servers (Web J2EE) have a session timeout setting. If used in conjunction with form based (container managed) authorization, the container will invalidate the session for you and pass control automatically to your login screen once their session is invalidated. Jon. -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: 28 January 2002 07:19 To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
Hi session.invalidate() comes to mind... another way would be to persist the information so far entered (under some artificial key) and use a cookie to reget that key from the user's browser as soon as he comes back. With this you can let the session expire and still have the information ready... hope this helps Alexander -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 8:19 AM To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
Store the data in a database on session timeout; restore it when the user comes back (requires a login or a persistent cookie). Mark -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 1:37 AM To: [EMAIL PROTECTED] Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
Ok, but what happens to their form bean? It would be gone, and thus their performance evaluation data would be gone. No? Craig. From: Jon.Ridgway [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Mon, 28 Jan 2002 10:12:13 - Hi Graig, Most Servers (Web J2EE) have a session timeout setting. If used in conjunction with form based (container managed) authorization, the container will invalidate the session for you and pass control automatically to your login screen once their session is invalidated. Jon. -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: 28 January 2002 07:19 To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
That sounds feasable. Thanks for your help! Craig. From: Jesse Alexander (KADA 12) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Mon, 28 Jan 2002 10:42:22 +0100 Hi session.invalidate() comes to mind... another way would be to persist the information so far entered (under some artificial key) and use a cookie to reget that key from the user's browser as soon as he comes back. With this you can let the session expire and still have the information ready... hope this helps Alexander -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 8:19 AM To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
There you go! That sounds good. So I'm assuming (bare with me, I haven't done much with session time outs) that you code some type of event procedure which is kicked off when the session times out? You can then do cleanup stuff at this point? How do you get at your form bean? If memory serves (and it's been a while), your form beans are always passed to you as a parameter. Unless you can get at them some how through the session object? Thanks, Craig. From: Mark Galbreath [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Mon, 28 Jan 2002 09:33:18 -0500 Store the data in a database on session timeout; restore it when the user comes back (requires a login or a persistent cookie). Mark -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 1:37 AM To: [EMAIL PROTECTED] Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
Well you sure loose all the uncommitted data (== data the user enters on his screen without posting it to the server). Offer the user to store the data with the promise that he can review it before finally committing it... hth Alexander -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 4:09 PM To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Ok, but what happens to their form bean? It would be gone, and thus their performance evaluation data would be gone. No? Craig. From: Jon.Ridgway [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Mon, 28 Jan 2002 10:12:13 - Hi Graig, Most Servers (Web J2EE) have a session timeout setting. If used in conjunction with form based (container managed) authorization, the container will invalidate the session for you and pass control automatically to your login screen once their session is invalidated. Jon. -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: 28 January 2002 07:19 To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
You could set your session to expire at any time you would it to expire, you don't have set it to -1. Yes, you can manually invalidate a session as well. -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 11:19 PM To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
That's right. Check out the javax.servlet.http.* API. You want to register the moment the user becomes unbound from a session so you can write the form values to the database (these would be stored as session attributes and updated as the user moves from field to field in the forms or from form page to form page. Any object that implements the HttpSessionBinding Listener interface is notified when it is bound and unbound from a session. So, for example, create a helper class or stick a helper method in your controller servlet to do something like: public void valueUnbound( HttpSessionindingEvent event) { [plug session.getAttribute() returns into update parameters on your Statement().update() method call through your Connection() String] } This works because whenever this interface is implemented, its valueBound() and valueUnbound() methods are invoked whenever a session begins and whenever it ends, respectively. This is how many persistent shopping cart apps work (e.g., see the JavaOne shopping cart at java.sun.com - it persists across sessions). Mark -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? There you go! That sounds good. So I'm assuming (bare with me, I haven't done much with session time outs) that you code some type of event procedure which is kicked off when the session times out? You can then do cleanup stuff at this point? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
Brilliant! Thanks. From: Mark Galbreath [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Mon, 28 Jan 2002 14:28:38 -0500 That's right. Check out the javax.servlet.http.* API. You want to register the moment the user becomes unbound from a session so you can write the form values to the database (these would be stored as session attributes and updated as the user moves from field to field in the forms or from form page to form page. Any object that implements the HttpSessionBinding Listener interface is notified when it is bound and unbound from a session. So, for example, create a helper class or stick a helper method in your controller servlet to do something like: public void valueUnbound( HttpSessionindingEvent event) { [plug session.getAttribute() returns into update parameters on your Statement().update() method call through your Connection() String] } This works because whenever this interface is implemented, its valueBound() and valueUnbound() methods are invoked whenever a session begins and whenever it ends, respectively. This is how many persistent shopping cart apps work (e.g., see the JavaOne shopping cart at java.sun.com - it persists across sessions). Mark -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? There you go! That sounds good. So I'm assuming (bare with me, I haven't done much with session time outs) that you code some type of event procedure which is kicked off when the session times out? You can then do cleanup stuff at this point? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]