Creating a new session instead of updating - 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: Creating a new session instead of updating (/showthread.php?tid=67432) |
Creating a new session instead of updating - bjacobs - 02-21-2017 Using version 2.0.2 and storing sessions in a database. Issue persists with both $config['cookie_domain'] = ''; and $config['cookie_domain'] = '.' . $_SERVER['SERVER_NAME']; I have a cart. I redirect to payment site, then redirect back to my site. When I redirect to my site, it creates a new blank session instead of updating the old one. However, if I delete all my session records and delete my cookies, when I try a payment and redirect back to my site, the session correctly updates instead of creating a new blank one. It will continue to work properly for a while and then eventually the problem comes back. Any ideas as to why a new session is being created instead of updating the old one? And any idea why deleting my sessions and cookies fixes that problem for a while? |