"Mark Lybarger" <[EMAIL PROTECTED]> writes: >we have a requirement that a user can only be logged in from one session at a time. >also we're logging them out when they close their browser. we're using a database >flag to show it they're logged in, and prevent subsequent logins based on that.
>the problem is that if the user's session times out when logged in (database has >isLoggedIn set to true), they won't be able to re log into our application. is there >a way in the turbine framework to tie into the session invalidation? i see a setting >for the timeout period in the tr.props file, but no way to apply a piece of code to >run when this happens. >any suggestions/insights would be most appreciaited. SessionService might what you're looking for. As others pointed out, you must add a Session Listener to your container (by adding it to your web.xml). Turbine provides such a listener in the SessionService. Please note, that you need a Servlet API 2.3 container for this. Regards Henning -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH [EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/ RedHat Certified Engineer -- Jakarta Turbine Development -- hero for hire Linux, Java, perl, Solaris -- Consulting, Training, Development "Fighting for one's political stand is an honourable action, but re- fusing to acknowledge that there might be weaknesses in one's position - in order to identify them so that they can be remedied - is a large enough problem with the Open Source movement that it deserves to be on this list of the top five problems." -- Michelle Levesque, "Fundamental Issues with Open Source Software Development" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]