CodeIgniter Forums
[Solved] Something worng with Sessions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: [Solved] Something worng with Sessions (/showthread.php?tid=65873)



[Solved] Something worng with Sessions - wolfgang1983 - 08-02-2016

I am using the latest version of CI Version 3.1.0

I have set my sessions like so in config

PHP Code:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'cache.session.';
$config['sess_expiration'] = 1440;
$config['sess_save_path'] = BASEPATH 'cache/';
$config['sess_match_ip'] = TRUE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = TRUE


Every time I reload the main login page it creates a new session file which is very annoying to me I do not know why it is doing that. I have only auto loaded the session library. I think may be a bug even when change to false still creates multiple files when reload.

PHP Code:
$config['sess_regenerate_destroy'] = FALSE


Any suggestions why it is creating multiple session files when reload page not even logged in.


RE: Something worng with Sessions - cartalot - 08-03-2016

did you try testing without the periods (dots) in the cookie name?


RE: Something worng with Sessions - InsiteFX - 08-03-2016

Dots Aren’t Allowed In PHP Cookie Names