Welcome Guest, Not a member yet? Register   Sign In
Crossing sessions data
#4

(This post was last modified: 02-21-2020, 03:02 PM by jreklund.)

Personally I'm storing my main session in files (user_id,login_time) instead of database. And saving additional content in the database. Always checking on every refresh if the information on file match the one in the database, and if the user have been deleted.

https://community-auth.com/

PHP Code:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'abcsession';
$config['sess_expiration'] = 86400;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 1800;
$config['sess_regenerate_destroy'] = FALSE;

$config['cookie_prefix'] = '';
$config['cookie_domain'] = NULL;
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = TRUE
Reply


Messages In This Thread
Crossing sessions data - by Luis Romero - 02-21-2020, 08:46 AM
RE: Crossing sessions data - by jreklund - 02-21-2020, 01:04 PM
RE: Crossing sessions data - by Luis Romero - 02-21-2020, 02:13 PM
RE: Crossing sessions data - by jreklund - 02-21-2020, 02:57 PM
RE: Crossing sessions data - by Luis Romero - 02-21-2020, 07:27 PM
RE: Crossing sessions data - by jreklund - 02-22-2020, 02:53 AM
RE: Crossing sessions data - by Luis Romero - 02-22-2020, 09:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB