![]() |
Removing session data too quickly after updating to CI 4.1.3 - 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: Removing session data too quickly after updating to CI 4.1.3 (/showthread.php?tid=80031) |
Removing session data too quickly after updating to CI 4.1.3 - ciddict - 09-04-2021 Hi, After upgrading from 4.1.1 to latest 4.1.3 it's removing session data too quickly. Also it's removing with no exact timing. Like sometime after 2-3 minutes or after 30 minutes ... weird situation. Can anyone please help where I look into? RE: Removing session data too quickly after updating to CI 4.1.3 - ikesela - 09-04-2021 my session is working perfectly for 4.1.3 RE: Removing session data too quickly after updating to CI 4.1.3 - ciddict - 09-04-2021 Can you please let me know where should I check? RE: Removing session data too quickly after updating to CI 4.1.3 - ikesela - 09-05-2021 (09-04-2021, 09:15 PM)ciddict Wrote: Can you please let me know where should I check?check where your program alter the session, i mean create or destroy session or overwrite existing session. RE: Removing session data too quickly after updating to CI 4.1.3 - InsiteFX - 09-05-2021 app/Config/App.php and php.ini are two places for setting up sessions. If you upgraded make sure that you also copied the system and app folders over. RE: Removing session data too quickly after updating to CI 4.1.3 - nfaiz - 09-05-2021 (09-04-2021, 09:15 PM)ciddict Wrote: Can you please let me know where should I check? This? RE: Removing session data too quickly after updating to CI 4.1.3 - ciddict - 09-05-2021 Thanks for your suggestions. @ikesela It's actually login session. It's set session if it doesn't exists. And I'm not getting it after certain times which I've mentioned in the post. @InsiteFX @nfaiz This is the related configs in my App.php: PHP Code: public $sessionDriver = 'CodeIgniter\Session\Handlers\DatabaseHandler'; RE: Removing session data too quickly after updating to CI 4.1.3 - kenjis - 09-06-2021 Database session has a bug. See https://github.com/codeigniter4/CodeIgniter4/pull/4876 Now fixed in only 4.2 branch, not in v4.1.4. The bug would be fixed in the next version. RE: Removing session data too quickly after updating to CI 4.1.3 - ciddict - 09-07-2021 @kenjis Thanks for your suggestion. |