![]() |
DB_Session not working! CI 2.0.2 - 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: DB_Session not working! CI 2.0.2 (/showthread.php?tid=42330) Pages:
1
2
|
DB_Session not working! CI 2.0.2 - El Forum - 06-03-2011 [eluser]Asiansexynine[/eluser] DB Session not working for me no any session adding to database table.. file: application/config/database.php Code: $active_group = 'default'; database session table Code: CREATE TABLE IF NOT EXISTS `sessions` ( file: application/config/config.php Code: $config['sess_cookie_name'] = 'gsession'; Not add session to database session table. how to fixed? DB_Session not working! CI 2.0.2 - El Forum - 06-05-2011 [eluser]toopay[/eluser] Did the session works without using database? DB_Session not working! CI 2.0.2 - El Forum - 06-05-2011 [eluser]InsiteFX[/eluser] For one the session databse table is incorrect there has been a change to it but the documentation has not been updated! Code: -- -------------------------------------------------------------- InsiteFX DB_Session not working! CI 2.0.2 - El Forum - 06-05-2011 [eluser]Asiansexynine[/eluser] [quote author="InsiteFX" date="1307290831"]For one the session databse table is incorrect there has been a change to it but the documentation has not been updated! Code: -- -------------------------------------------------------------- InsiteFX[/quote] I am change to file: application/config/database.php Code: $active_group = 'default'; database session table Code: CREATE TABLE IF NOT EXISTS `ci_sessions` ( file: application/config/config.php Code: $config['sess_cookie_name'] = 'gsession'; Still not work for me.. Anyone was test DB session and working? DB_Session not working! CI 2.0.2 - El Forum - 06-05-2011 [eluser]toopay[/eluser] Did the session works without using database? DB_Session not working! CI 2.0.2 - El Forum - 06-05-2011 [eluser]Asiansexynine[/eluser] [quote author="toopay" date="1307303819"]Did the session works without using database?[/quote] I am checking session.save_path C:\xampp\tmp where session store. and my CI2 not store session in C:\xampp\tmp what happen with session on CI2 where to save session on CI2? I don't understand CI session are working on 1.7.2 the version that use before DB_Session not working! CI 2.0.2 - El Forum - 06-05-2011 [eluser]InsiteFX[/eluser] Did you load the session library? InsiteFX DB_Session not working! CI 2.0.2 - El Forum - 06-06-2011 [eluser]Asiansexynine[/eluser] [quote author="InsiteFX" date="1307327735"]Did you load the session library? InsiteFX[/quote] By CI 1.7 do not load the session library.. but work well.. by setting config file.. with CI2 must load the session library? I don't know that.. how to do? and what's files to adding? DB_Session not working! CI 2.0.2 - El Forum - 06-06-2011 [eluser]WanWizard[/eluser] CI doesn't load anything by default. Either add it to the config/autoload list, or load it manually in your controller. DB_Session not working! CI 2.0.2 - El Forum - 06-06-2011 [eluser]Asiansexynine[/eluser] I am try to set $autoload['libraries'] = array('session'); in application/config/autoload.php set config Code: $config['sess_cookie_name'] = 'ci_session'; add code to view.. to check if session work. Code: <?php Now session_id were generate for my website.. but where session files store? in phpinfo() show me that session.save_path = C:\xampp\tmp OK.. take a look at C:\xampp\tmp but no session files generate there.. where is my session files? how to set session.save_path on CI2? |