I wonder if it possible to force logout users session when Browser closes or Computer went sleep or hibernated?
any ideas?
Thanks
I wonder if it possible to force logout users session when Browser closes or Computer went sleep or hibernated?
any ideas?
Thanks
Not until computer goes to sleep or hibernated, this are actions that happen outside of browser knowledge. You can log users out when the browser closes by checking the user authentification based on a cookie. In PHP and implicitly in Kohana this is done by setting the cookie expire parameter to 0. If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes).