CodeIgniter Forums
Share sessions outside CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Share sessions outside CI (/showthread.php?tid=40721)



Share sessions outside CI - El Forum - 04-16-2011

[eluser]phpmonster[/eluser]
I'm using CI2 with ion_auth. Everything was working fine now 2 weeks later when I want to pickup the project again I notice that there is nothing being stored in the ci_sessions table. I'm trying to debug and trace back what I changed.

session_id are being generated, but just not stored in the ci_sessions table.

in my config file:
Code:
$config['sess_cookie_name']        = 'ci_session';
$config['sess_expiration']        = 7200;
$config['sess_expire_on_close']    = FALSE;
$config['sess_encrypt_cookie']    = TRUE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']        = 'ci_sessions';
$config['sess_match_ip']        = FALSE;
$config['sess_match_useragent']    = TRUE;
$config['sess_time_to_update']    = 300;

the server time seems fine.

Any help would be appreciated.


***********UPDATE****************

I was using this library to share sessions, however it seems that it overwrites ci sessions failing to store data into ci_sessions table: http://codeigniter.com/wiki/Native_session/

Is there an another session library that would extend CI sessions library or is there a way around this.