• Resolved ramya0072

    (@ramya0072)


    I have integrated the logout function in the browser close. But I’am unable to view the logged out history

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author eskapism

    (@eskapism)

    Hi! I’m sorry but I’m not sure what you mean when you say you have “integrated the logout function in the browser close”. Can you explain it a bit more or maybe even provide some code example of what you have done?

    Thread Starter ramya0072

    (@ramya0072)

    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 );

    Plugin Author eskapism

    (@eskapism)

    Ok, I think I understand what you mean. Because you or the user actually don’t click the logout button in WordPress, there is no way for Simple History to know that the user has been logged out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Browser close logout logs are not showing’ is closed to new replies.