Codeigniter session doesn't store session data with using database - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: Codeigniter session doesn't store session data with using database (/showthread.php?tid=1011) |
Codeigniter session doesn't store session data with using database - Vimal - 02-05-2015 my settings in config file PHP Code: $config['sess_driver'] = 'database';//'files'; My Controller PHP Code: public function index() { RE: Codeigniter session doesn't store session data with using database - Avenirer - 02-05-2015 $config['sess_save_path'] = 'sessdata';//NULL;//dbname - is NOT dbname but session table. Did you follow the steps in the manual? Also, you can try one of my tutorials: http://avenir.ro/codeigniter-tutorials/sessions-with-database-in-codeigniter/ RE: Codeigniter session doesn't store session data with using database - Vimal - 02-06-2015 i just removed "." from PHP Code: $config['cookie_domain'] = '';//here And everything works fine now.I don't Know whats the prob with it RE: Codeigniter session doesn't store session data with using database - Narf - 02-06-2015 (02-06-2015, 04:26 AM)Vimal Wrote: i just removed "." from That '.' is not a valid domain? RE: Codeigniter session doesn't store session data with using database - Avenirer - 02-06-2015 (02-06-2015, 04:26 AM)Vimal Wrote: i just removed "." from ...And also you've changed your thread code... RE: Codeigniter session doesn't store session data with using database - Vimal - 02-06-2015 Because i know that was table name i just marked and commented this line. "'sessdata';//NULL;//dbname" |