> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
--
Dominik Dorn
http://dominikdorn.com
http://twitter.com/domdorn
Skripten, Mitschriften, Lernunterlagen, etc. findest Du auf
http://www.studyguru.eu !
in that user object you could store a property, lets say authToken
that gets read when the user logs in and is also stored in the
session.
you then create a @Before annotated method in your parent controller
that checks if the session['authToken'] matches the authToken in the
retrieved user object, if it does, proceed, if it does not, destroy
the session.
there's a hook in the secure module to do custom stuff after a user is
authenticated.. thats where you can put the authtoken into the
session.
so to log a user out, you'd simply have to generate a new authToken
for that user.
quite easy to do and works with the stateless way of play.
just keep the authToken short as its transfered on every request with
the cookies... a two digit number would do fine.
I am using Play built-in secure module. I want to let a admin user log
out a specific user if that user is logged in. Any suggestion?
Thanks,
Bendanpa
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.