Sessions in Codeigniter gets changed during page load |
(09-28-2018, 12:09 AM)gaustinv88 Wrote:(09-27-2018, 08:46 AM)dave friend Wrote: It might be a bug, or it might be an implementation issue, or it might be a session and/or cookie configuration issue. Please show the related $config settings and your login code. I don't see any "that's the problem" above, but there are a couple things you could try. First make sure BASEPATH.'sess/cache/' has the proper permissions (700) and user:group (often www-data:www-data or root:root) . I'm a little suspicious about the location of the session data folder as a subfolder of "system". My preference is to put it on the same level as the public (root) folder. Where the root folder is "htdocs" and the session data folder is "sessions" I set the config like this. PHP Code: $config['sess_save_path'] = substr(FCPATH, 0, strpos(FCPATH, 'htdocs/')) . "sessions/"); It might be worth a try. The other place I've sometimes had trouble is with the cookie_domain where it would not work with an empty string. Try the following. PHP Code: config['cookie_domain'] = '.example.com'; Obviously, replace "example.com" with your site's domain. Hope this helps. |
Messages In This Thread |
Sessions in Codeigniter gets changed during page load - by gaustinv88 - 09-27-2018, 01:18 AM
RE: Sessions in Codeigniter gets changed during page load - by dave friend - 09-27-2018, 08:46 AM
RE: Sessions in Codeigniter gets changed during page load - by gaustinv88 - 09-28-2018, 12:09 AM
RE: Sessions in Codeigniter gets changed during page load - by dave friend - 09-28-2018, 08:53 AM
RE: Sessions in Codeigniter gets changed during page load - by gard_olsen - 10-24-2018, 01:03 AM
RE: Sessions in Codeigniter gets changed during page load - by razorsharpshady - 11-29-2018, 01:25 AM
RE: Sessions in Codeigniter gets changed during page load - by HamidBasri - 10-24-2018, 06:25 AM
|