John Thorhauer wrote:
>
> Errr I am having a problem removing a user from the session when they logout.
> I am pretty sure this used to work but now I cant get rid of the user. Is
> anyone else having problems with this?
>
> I have tried
>
> data.removeUserFromSession()
>
> data.getSession.removeValue("turbine.user")
>
> plus a couple other variations but the call to data.getUser() still does not
> return null. Any ideas?
Look at the default LogoutUser action, data.getUser() should probably
not return null, it may break some. LogoutUser replaced the user with a
"guest" user.
// Retrieve an anonymous user.
data.setUser( TurbineSecurity.getAnonymousUser() );
data.save();
John McNally
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]