The session to files do not appear in sessions folder - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: The session to files do not appear in sessions folder (/showthread.php?tid=66382) Pages:
1
2
|
The session to files do not appear in sessions folder - edica - 10-17-2016 Hello, The session to files do not appear in ../sessions folder. /sessions folder with cmod 0777 Any suggestion? Using database that works. $config['sess_driver'] = 'files'; //$config['sess_driver'] = 'database'; $config['sess_cookie_name'] = 'of'; $config['sess_expiration'] = 0; $config['sess_save_path'] = FCPATH.'application/sessions'; //$config['sess_save_path'] = 'ci_sessions'; $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = FALSE; Thanks. RE: The session to files do not appear in sessions folder - wolfgang1983 - 10-17-2016 Try on you save path end with / PHP Code: $config['sess_save_path'] = APPPATH . 'sessions/'; 0700 for chmod best I think Also how do you load sessions $this->load->library('session'); or on autoload.php $autoload['libraries'] = array('session'); RE: The session to files do not appear in sessions folder - edica - 10-18-2016 Not worked yet. I'm using CentOS 7.2 and PHP7. Maybe I have to do something in php.ini? RE: The session to files do not appear in sessions folder - ciadmin - 10-18-2016 I don't know where "../sessions" is ... you configured your session folder to be "application/sessions" inside your document root. RE: The session to files do not appear in sessions folder - edica - 10-18-2016 It's at folder application/sessions (chmod 0700) None of them work: $config['sess_save_path'] = FCPATH.'application/sessions'; or $config['sess_save_path'] = APPPATH . 'sessions/'; He is pointing to the correct place. Maybe the problem is another. RE: The session to files do not appear in sessions folder - Narf - 10-18-2016 Look at your log files. RE: The session to files do not appear in sessions folder - edica - 10-18-2016 Do not show any errors. Only that: INFO - 2016-10-18 21:08:41 --> Session: Class initialized using 'files' driver. DEBUG - 2016-10-18 21:08:41 --> Session class already loaded. Second attempt ignored. INFO - 2016-10-18 21:08:41 --> Helper loaded: cookie_helper RE: The session to files do not appear in sessions folder - InsiteFX - 10-18-2016 This works for me CI 3.1.0 PHP 7 with my session folder called ../application/temp PHP Code: $config['sess_driver'] = 'files'; Change the set_cookie_name to your own name. RE: The session to files do not appear in sessions folder - edica - 10-18-2016 It does not work. $config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'of'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = APPPATH.'sessions'; $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = FALSE; Please sorry. I'm using PHP 7.1 RC4 The problem in PHP, is it? RE: The session to files do not appear in sessions folder - InsiteFX - 10-19-2016 Then you must have an installation problem with your folders access. But I do know that they made changes to the PHP 7 sessions. |