just let your websession implement the httpsessionlistener

johan


On 4/23/07, shumbola <[EMAIL PROTECTED]> wrote:


The use case is following:
I want to prevent simultaneous logins for users. If user already logged in
from one ip address, I show the error message.
For this I've added a HashMap field into my Application class, and after
successful authorization I add a user into this map.
If user logs out, I remove the user from this map. However, I want to be
able to remove a user if he/she didn't logged out but his/her session
expired. For this purposes I've created a class that implements
HttpSessionListener interface.
The question is how I can get into my session (which extends WebSession)
from HttpSession which i get from HttpSessionEvent?

--
View this message in context:
http://www.nabble.com/HttpSessionListener-interface-tf3630232.html#a10136859
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to