Welcome Guest, Not a member yet? Register   Sign In
Multiple Set-Cookie in header? Session regenerating maybe?
#9

(04-20-2017, 07:41 AM)Narf Wrote:
(04-20-2017, 07:15 AM)AzaZPPL Wrote:
Code:
$config['sess_driver']          = 'database';
$config['sess_cookie_name']        = 'ci_session';
$config['sess_use_database']    = TRUE;
$config['sess_save_path']        = 'Ci_sessions';

Now you've removed one that you need (expiration) and you still have one unused (use_database).


So like this?
Code:
$config['sess_driver']       = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'Ci_sessions';

I think I might have an old config file since it still shows:
Code:
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_cookie_name'        = the name you want for the cookie
| 'sess_expiration'            = the number of SECONDS you want the session to last.
|   by default sessions last 7200 seconds (two hours).  Set to zero for no expiration.
| 'sess_expire_on_close'    = Whether to cause the session to expire automatically
|   when the browser window is closed
| 'sess_encrypt_cookie'        = Whether to encrypt the cookie
| 'sess_use_database'        = Whether to save the session data to a database
| 'sess_table_name'            = The name of the session database table
| 'sess_match_ip'            = Whether to match the user's IP address when reading the session data
| 'sess_match_useragent'    = Whether to match the User Agent when reading the session data
| 'sess_time_to_update'        = how many seconds between CI refreshing Session Information
|
*/

Doesn't the sess_expiration already default to 7200?
Reply


Messages In This Thread
RE: Multiple Set-Cookie in header? Session regenerating maybe? - by AzaZPPL - 04-20-2017, 07:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB