Hi,
I have enabled login for accessing the website, If a user close the browser window, the session should get logged out. It is getting logged out but its not showing in the Simple history.
My Code
function myplugin_cookie_expiration( $expiration, $user_id, $remember ) {
return $remember ? $expiration : 10;
}
add_filter( ‘auth_cookie_expiration’, ‘myplugin_cookie_expiration’, 10, 3 );