CodeIgniter Forums

Full Version: Creating a new session instead of updating
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Using version 2.0.2 and storing sessions in a database. Issue persists with both 
$config['cookie_domain'] = '';
$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?