Support Forums - Classified Ads Script Osclass
Osclass plugin support => Free Osclass Plugins => Facebook Login Plugin => Topic started by: Carlos Carcamo on February 14, 2018, 05:22:03 PM
-
Hey guys I just want to know how to extend the session time
-
@Carlos
I am using this code in config.php:
session_set_cookie_params(2592000);
ini_set('session.gc_maxlifetime', 2592000);
Works very well, however session change will throw error to logged users when it is about to expire (one time).
-
@Carlos
I am using this code in config.php:
session_set_cookie_params(2592000);
ini_set('session.gc_maxlifetime', 2592000);
Works very well, however session change will throw error to logged users when it is about to expire (one time).
Is this config.php in home folder or configure.php in the plugin facebook_login\admin folder?
Thanks.
-
@firesale
config.php in root
-
This is a long time ago but I experience to have to login again and again, in the website root I changed the config.php to:
// Increase default login time for user
session_set_cookie_params(2592000);
ini_set('session.gc_maxlifetime', 2592000);
Is this problem solved and is my problem something else like hosting settings or the fact I am logged in as admin, or having the maintenance option set to on right now?
Thanks!
-
Best way is to check "remember me" to save your session into cookies.
-
Yeah I do so, but that won't solve it. I am logging in as admin through the oc-admin and have maintenance activated.
-
Not sure if that has impact, but there are 2 things to remember:
- browser may try to "secure" you and will cut cookies & sessions as much as possible
- when you login in different browser, it may log you out in another ones
- when you login into oc-admin, it may log you out from front
-
Thanks, it can be any off those factors then, so will further test this.