Session not set at least one minutes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Choosing CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=8) +--- Thread: Session not set at least one minutes (/showthread.php?tid=70444) Pages:
1
2
|
Session not set at least one minutes - sanjaya - 04-10-2018 Dear Team. I have develop a app with codeigniter. in my localhost session working fine. but when I host it to real server it's session not set at least minutes. Please refer below url and demo login details are here.. sghapps.tk username: [email protected] Password: Prasanna0311* RE: Session not set at least one minutes - InsiteFX - 04-10-2018 You need to show your session configuration and how you are setting up your sessions code. RE: Session not set at least one minutes - sanjaya - 04-11-2018 (04-10-2018, 03:42 AM)InsiteFX Wrote: You need to show your session configuration and how you are setting up your sessions code.This is Config File:- PHP Code: <?php PHP Code: <?php This is my session Controller :- PHP Code: <?php RE: Session not set at least one minutes - sanjaya - 04-11-2018 (04-10-2018, 03:42 AM)InsiteFX Wrote: You need to show your session configuration and how you are setting up your sessions code. I have try this app in another hosting account. its work fine. Any one can help me please. apps.hitnews.lk RE: Session not set at least one minutes - InsiteFX - 04-11-2018 It's not working because you need to set the sess_save_path Create a folder called writable under ./applicatiion PHP Code: $config['sess_driver'] = 'files'; SEE: The sess_save_path RE: Session not set at least one minutes - sanjaya - 04-15-2018 (04-15-2018, 08:57 PM)sanjayaI have set as below session path. But same error still there.. Wrote: RE: Session not set at least one minutes - InsiteFX - 04-16-2018 If your using the database sessions then the database table name must match the sess_save_path. Also make sure that you are using the new CodeIgniter 3.1.8 session table. RE: Session not set at least one minutes - sanjaya - 04-16-2018 (04-16-2018, 03:47 AM)InsiteFX Wrote: If your using the database sessions then the database table name must match Look Attached my database table screenshot. Session data was successfully stored to database. this app work fine in another hosting account. I think this issue related with my cpanel. Is there any spacial requirement to host for codeigniter? RE: Session not set at least one minutes - sanjaya - 04-20-2018 This issue related with php version. When I use php 5.6. It.s work fine.. RE: Session not set at least one minutes - InsiteFX - 04-20-2018 CodeIgniter Users Guide. Server Requirements PHP version 5.6 or newer is recommended. |