Welcome Guest, Not a member yet? Register   Sign In
Session Problem
#1

[eluser]Sarwar CSE[/eluser]
i am using obsession in config.php file i have changed the line

Code:
$config['sess_expiration']            = 300;

so the session destroy after the 5 min from last activity but our site always destroy the session after 5 min from session start time.

Why please help me.
#2

[eluser]WanWizard[/eluser]
Ajax site?
#3

[eluser]Sarwar CSE[/eluser]
Yes Ajax Site
#4

[eluser]WanWizard[/eluser]
I thought so.

By default, the session class rotates the session_id every 300 seconds (is also a setting in the config), if this happens on an ajax call, the session_id is updated but no updated cookie is send to the client. So at the next page request the session_id no longer matches, and you are logged out.

The solution to this has been discussed before on this forum. Search for sess_update and IS_AJAX.




Theme © iAndrew 2016 - Forum software by © MyBB