new session id on each page load |
Every time I load/refresh a page CI generates a new session.
Code: $config['sess_driver'] = 'database'; I call session library in autoload Code: $autoload['libraries'] = array('session'); I have a coockiedomain set correctly Code: $config['cookie_domain'] = ".mydomain.com"; It stores the data in my database correctly, but on every page-load generates a new session. There are no errors in Apache nor in CI log. Do you have any ideas where to start? Thank you
Are you on a localhost? Try leaving the cookie domain blank, does it still create new sessions on page load?
Make sure to read carefully the documentation on setting up your CI sessions table:
https://www.codeigniter.com/user_guide/l...ase-driver Especially the part about the primary key and "sess_match_ip". |
Welcome Guest, Not a member yet? Register Sign In |