Welcome Guest, Not a member yet? Register   Sign In
Removing session data too quickly after updating to CI 4.1.3
#1
Sad 

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?
Reply
#2

my session is working perfectly for 4.1.3
Reply
#3

Can you please let me know where should I check?
Reply
#4

(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.
Reply
#5

(This post was last modified: 09-05-2021, 01:43 AM by InsiteFX.)

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#6

(09-04-2021, 09:15 PM)ciddict Wrote: Can you please let me know where should I check?


This?
Reply
#7

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';
public 
$sessionCookieName 'ci_session';
public 
$sessionExpiration 7200;
public 
$sessionSavePath 'ci_sessions'//table in my database
public $sessionMatchIP false;
public 
$sessionTimeToUpdate 300;
public 
$sessionRegenerateDestroy false
Reply
#8

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.
Reply
#9

@kenjis Thanks for your suggestion.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB