Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-19 Thread wicket21
Hi again, sorry for the late response and sorry for the identation, I was quite in a hurry yesterday. How would I implement the same thing for 1.2.6? Where should I add code (in the wicket classes)? Thanks for the patience, Konstantinos Al Maw wrote: Al Maw wrote: Konstantinos:

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-19 Thread Al Maw
shumbola wrote: How to find out what was the reason for firing onbeforeunload, window close, navigate to other place, back button, forward button, etc? I.e. is there a way to find out the exact window close here? No. Go write a desktop application. ;-) Regards, Al -- Alastair Maw

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Harald Gruber
you could write a HttpSessionListener: in your WEB-INF: listener listener-classcom.my.SessionObserver/listener-class /listener class: public class SessionObserver implements HttpSessionListener { private static final Log LOG =

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread wicket21
Eelco Hillenius wrote: On 6/17/07, Igor Vaynberg [EMAIL PROTECTED] wrote: thats not entirely correct. while the event cannot be pushed to you, you can pull for it. you can set a cookie with expiration null - such a cookie is destroyed when the window is closed. so you can poll for it ad

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread wicket21
I was looking for a wicket solution, but this is not a bad idea. I will try this later on today and see how it goes (it does seem straightforward enough...) Konstantinos Harald Gruber wrote: you could write a HttpSessionListener: in your WEB-INF: listener

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Eelco Hillenius
That won't solve your problem though. You'd get the same kind of call back as you would get by overriding onUnbind in a custom session store. It won't do anything for catching the event that a user closes a browser without properly logging out. Eelco On 6/17/07, wicket21 [EMAIL PROTECTED] wrote:

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Harald Gruber
wicket21 schrieb: I was looking for a wicket solution, but this is not a bad idea. I will try this later on today and see how it goes (it does seem straightforward enough...) probably you can implement the HttpSessionListener interface in your wicket application and install it

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Harald Gruber
Eelco Hillenius schrieb: That won't solve your problem though. You'd get the same kind of call back as you would get by overriding onUnbind in a custom session store. It won't do anything for catching the event that a user closes a browser without properly logging out. those methods are

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Eelco Hillenius
Eelco Hillenius schrieb: That won't solve your problem though. You'd get the same kind of call back as you would get by overriding onUnbind in a custom session store. It won't do anything for catching the event that a user closes a browser without properly logging out. those methods are

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Harald Gruber
Yes, and the same happens for AbstractHttpSessionStore#onUnbind ok, admit, i didnt check the source code of AbstractHttpSessionStore ;-) so i guess, that's what he needs... - This SF.net email is sponsored by DB2 Express

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread wicket21
Al Maw wrote: Eelco Hillenius wrote: well, I have a project where the requirement is to do some things when user logs out, otherwise the same user can't use the application for the next 30 minutes. It works fine when user uses the logout link, but I want the same behavior when the user

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Harald Gruber
though it implements the HttpSessionBindingListener and not the HttpSessionListener. i guess the difference between both ist, that the binding listener only realizes and observes which values of the session are bound and the session listener recognizes if a session itself is created or

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Al Maw
Konstantinos: Firstly, please quit replying with your own text indented with a , the same as the text you're quoting. It makes it really difficult to see what the heck is going on. ;-) Secondly, I said onbeforeunload, not onunload. Al -- Alastair Maw Wicket-biased blog at

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Al Maw
Al Maw wrote: Konstantinos: Firstly, please quit replying with your own text indented with a , the same as the text you're quoting. It makes it really difficult to see what the heck is going on. ;-) Secondly, I said onbeforeunload, not onunload. I've just added this functionality to

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Thomas R. Corbin
On Monday 18 June 2007 2:19 am, Eelco Hillenius escreveu: Eelco Hillenius schrieb: That won't solve your problem though. You'd get the same kind of call back as you would get by overriding onUnbind in a custom session store. It won't do anything for catching the event that a user closes

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread shumbola
Çäðàâñòâóéòå, Al. Âû ïèñàëè Monday, June 18, 2007, 3:08:44 PM: Al Maw wrote: Konstantinos: Firstly, please quit replying with your own text indented with a , the same as the text you're quoting. It makes it really difficult to see what the heck is going on. ;-) Secondly, I said

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-18 Thread Eelco Hillenius
though it implements the HttpSessionBindingListener and not the HttpSessionListener. i guess the difference between both ist, that the binding listener only realizes and observes which values of the session are bound and the session listener recognizes if a session itself is created or

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread wicket21
hi, will this work when the user clicks the browser's close button as well? Konstantinos Ken Leung-2 wrote: yes, looks like it does. thx, i 'll give it a try. On 6/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Not sure from the top of my head (don't have the project checked

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread wicket21
well, I have a project where the requirement is to do some things when user logs out, otherwise the same user can't use the application for the next 30 minutes. It works fine when user uses the logout link, but I want the same behavior when the user closes the window. Any hints how to do this?

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Eelco Hillenius
well, I have a project where the requirement is to do some things when user logs out, otherwise the same user can't use the application for the next 30 minutes. It works fine when user uses the logout link, but I want the same behavior when the user closes the window. Any hints how to do this?

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Igor Vaynberg
thats not entirely correct. while the event cannot be pushed to you, you can pull for it. you can set a cookie with expiration null - such a cookie is destroyed when the window is closed. so you can poll for it ad if its gone you know its a new window being opened. in the same manner you can use

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Eelco Hillenius
On 6/17/07, Igor Vaynberg [EMAIL PROTECTED] wrote: thats not entirely correct. while the event cannot be pushed to you, you can pull for it. you can set a cookie with expiration null - such a cookie is destroyed when the window is closed. so you can poll for it ad if its gone you know its a

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-17 Thread Al Maw
Eelco Hillenius wrote: well, I have a project where the requirement is to do some things when user logs out, otherwise the same user can't use the application for the next 30 minutes. It works fine when user uses the logout link, but I want the same behavior when the user closes the window.

[Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Ken Leung
Is there a way to trap the http session expires so that I can do some of my own house keeping stuff in my application ? thx - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Eelco Hillenius
Yep. In Wicket 1.3 the default session store implementations have #onUnbind which should be called automatically with either an expiry or an explicit invalidation. If you don't extend from the abstract session store class (AbstractHttpSessionStore), you have to implement something yourself. Eelco

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Ken Leung
sounds good, but can it be done in 1.2.6 ? thx On 6/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Yep. In Wicket 1.3 the default session store implementations have #onUnbind which should be called automatically with either an expiry or an explicit invalidation. If you don't extend from

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Eelco Hillenius
Not sure from the top of my head (don't have the project checked out here), but I think so... if the HttpSessionStore (the default in Wicket 1.2) has onUnbind, it should do that. Eelco On 6/15/07, Ken Leung [EMAIL PROTECTED] wrote: sounds good, but can it be done in 1.2.6 ? thx On

Re: [Wicket-user] how to detect http session expiry - timeout due to no user activity

2007-06-15 Thread Ken Leung
yes, looks like it does. thx, i 'll give it a try. On 6/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Not sure from the top of my head (don't have the project checked out here), but I think so... if the HttpSessionStore (the default in Wicket 1.2) has onUnbind, it should do that. Eelco