Welcome Guest, Not a member yet? Register   Sign In
Codeigniter clear my session data sometimes automatic
#1

[eluser]simotho[/eluser]
Hello Codeigniter people.
I've a very strange problem. I've my user data stored in sessions when people are loggin in to the site. This is working as it should, but sometimes when i navigate around on my site, Codeigniter loggin me out automatic out of the wind.

Anyone got this problem before and know a solution?

Really hope someone can help me (I'm using Codeigniter 1.7 and not 2.0)
#2

[eluser]nil_php[/eluser]
Check $config['sess_expiration'] & $config['sess_time_to_update'] values from config.php file.

$config['sess_expiration'] = 7200;
$config['sess_time_to_update'] = 300;

If it's okay then you can try by using database for storing sessions.
$config['sess_use_database'] = TRUE;
$config['sess_table_name'] = 'ci_sessions';

The create the table ci_sessions.

Or you can try native session library http://codeigniter.com/wiki/Native_session/
#3

[eluser]tonanbarbarian[/eluser]
which browser are you experiencing the problem? Is it only IE or all browsers? It is only logging you out when CI is redirecting or also when clicking on links?

If the issue is only happening in IE and only on redirection then look at this new post
http://ellislab.com/forums/viewthread/189840/




Theme © iAndrew 2016 - Forum software by © MyBB