• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Something worng with Sessions

#1
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.


Attached Files Thumbnail(s)
   
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply

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

#3
Dots Aren’t Allowed In PHP Cookie Names
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.