Welcome Guest, Not a member yet? Register   Sign In
Native_session not working correctly
#4

[eluser]xeron[/eluser]
omg, i found some mistakes in my web app:
first of all, the username database field of the remember_me lib was limited to 16 characters, thats because usernames (in my case the email addresses) were truncated when they were idle !

and in the userauth lib, line 176

Code:
// Expire an inactive login
if ( $this->obj->native_session->userdata('loggedin') ) {
    $expire_time = time() - $this->obj->config->item('login_expiration');
    if ( $this->obj->native_session->userdata('last_activity') <=  $expire_time) {
        log_message('debug', "Userauth: check: inactive login, expired");
        $this->logout();
    }
}

the config value "login_expiration" was not defined in the config (it also doesnt exist in the original userauth package)
i changed it to session_expiration

i also switched over to db_session

i hope that this all solves the problem Smile


Messages In This Thread
Native_session not working correctly - by El Forum - 06-27-2007, 04:22 AM
Native_session not working correctly - by El Forum - 06-27-2007, 05:48 AM
Native_session not working correctly - by El Forum - 06-27-2007, 06:42 AM
Native_session not working correctly - by El Forum - 06-28-2007, 10:46 AM
Native_session not working correctly - by El Forum - 07-02-2007, 07:38 AM
Native_session not working correctly - by El Forum - 07-02-2007, 07:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB