New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remember me not working, #12
Comments
This currently seems to be working fine for me in Chrome and FF. So you can test yourself, I have 'temporarily' changed the live demo so that the config setting 'logout_user_onclose' = FALSE. To test, do the following: The important setting you have to ensure are set is the $config['security']['logout_user_onclose'] = FALSE; within the flexi auth config file. |
i had followed the settings, you provided but it still not work. $config['sess_cookie_name'] = 'xxx_session'; because i add some diagnostic in libraries\flexi_auth_lite.php it seems CI will resume the session_id in database, so $this->is_logged_in() will be always ture please help if it is my problem or others ,thanks |
i found the problem is in flexi_auth_lite is_logged_in() PS. i already used the updated library from github |
I'm not sure I'm understanding your situation properly. $config['security']['validate_login_onload'] = TRUE; |
it seems to be CI ,CI Session problem, could you tell me your demo is using which version of CI ,thanks it looks like the CI not destroy the session after the browser , when the browser reopen it use the not destroy session and resume , so $this->is_logged_in() $this->CI->auth->session_data[$this->CI->auth->session_name['user_identifier']]; will be true. also i had sent the testing lab to your mail, could you help? thanks |
Hey Tony, the version of CI I'm using is 2.1.3. Regarding the zip file you sent me, I'm sorry, but I have 5 other projects that I am currently working on and I don't have the free time to setup your installation and debug the problem you're having. If you have specific questions or input to give regarding the library, I will try and help out when I get the time. |
Hej, ran into the same problem, not completely analyzed it yet, but in my case it could be traced to the flexi_auth_lite library being loaded right before the flexi_auth library, the remember-me check would succeed the first time and fail the second time and as consequence remove any session and db cookies and thereby unwanted logouts. In the log it would appear as follows (after tweaking the library..):
Note the relevant function being: flexi_auth_model::login_remembered_user() A dirty fix in my case: in library/Flexi_auth.php, line 36 edit
A "fix" to come, when time comes.. But essentially the same effect would occur when intentionally loading the lite library first, and then loading the full library. |
Hi, i noticed that also when i make click in another tab causes to be loged out inmediatamente, also when i lost windows focus,( especially on ajax call when i'm away) |
i have tested many time for this when i login with remember me,
after i close the browser, and reopen the browser, it will logout all sessions.
The text was updated successfully, but these errors were encountered: