This content has been marked as final. 
    
Show                 4 replies
    
- 
        1. Re: Closing User Sessionnickarls Jan 25, 2008 5:49 AM (in response to gregtk)I don't think you can forcefully end another users session. 
 You probably have to flag/signal the termination in some application scoped component and then have the client poll that place and have the client self-destruct...
- 
        2. Re: Closing User Sessiongregtk Jan 25, 2008 7:33 AM (in response to gregtk)Maybe you can write some example? 
- 
        3. Re: Closing User Sessionnickarls Jan 25, 2008 7:57 AM (in response to gregtk)Dont be lazy ;-) 
 * Write an application scoped bean with a Set that contains something identifying the user (session, user id etc).
 *Add a method that queues the id for destruction.
 *Add a boolean method that checks if the set contains() id.
 *Add a page action that uses the boolean method and logs out if it returns true.
 *Add cleanup.
 As I said, there might be better ways.
- 
        4. Re: Closing User Sessionnickarls Jan 25, 2008 8:00 AM (in response to gregtk)Of course polling against JMS or some sort of push (depending on view technology) might be cleaner. 
 
    