This content has been marked as final.
Show 2 replies
-
1. Re: Security logout method
dilator Feb 12, 2007 7:25 PM (in response to rmemoria)For logout, rather than calling identity.logout(), call your own method that either call's Identity.instance().logout(), or calls Seam.invalidateSession() - which at the moment is basically all identity.logout() does.
For expiring sessions, presumably you already have a session scoped stateful component, i'd annotate a method in it with @Destroy (you'll already have one of these if you're using SFSBs) -
2. Re: Security logout method
gavin.king Feb 12, 2007 10:54 PM (in response to rmemoria)Either
(a) Add an @Destroy method to any session scope component (you may also need to annotate it as @Startup)
Or:
(b) Add an observer to the event org.jboss.seam.preDestroyContext.SESSION