CodeIgniter Forums
Session - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Session (/showthread.php?tid=21972)



Session - El Forum - 08-25-2009

[eluser]jbtx[/eluser]
helo again! I need help

I am using database for my session - I am adding custom data to it
and I see that it creates a single row in my db and it also creates a cookie name with the $config['sess_cookie_name'] I set,

after 50 sec. it then expires

I want to know the problem- this is it
I have a created another cookie and I named it the same as the cookie that is created by the session

but when my page loads the library session it adds another table row in my db with 'user_data' field empty so there are two rows in all instead of one with a 'user_data' field that is not empty!

also the session won't expire

does having two cookies with the same name cause it?


Session - El Forum - 08-25-2009

[eluser]InsiteFX[/eluser]
You need to set your cookie and session timeouts in you config.php file.

Also if the seesion data is still there when you exit do a $this->session->sess_destroy();

Enjoy
InsiteFX