Welcome Guest, Not a member yet? Register   Sign In
session expiring
#1

[eluser]GabrieleMartino[/eluser]
Hello,

I bring a code online and I found that my session do not last. I have the following setting


Code:
$config['sess_cookie_name']  = 'ci_session';
$config['sess_expiration']  = 0;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = TRUE;
$config['sess_table_name']  = 'sessions';
$config['sess_match_ip']  = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 100;

in my application/config.php

whareas i have

Code:
var $sess_encrypt_cookie  = FALSE;
var $sess_use_database   = FALSE;
var $sess_table_name   = '';
var $sess_expiration   = 7200;
var $sess_expire_on_close  = FALSE;
var $sess_match_ip   = FALSE;
var $sess_match_useragent  = TRUE;
var $sess_cookie_name   = 'ci_session';
var $cookie_prefix   = '';
var $cookie_path   = '';
var $cookie_domain   = '';
var $cookie_secure   = FALSE;
var $sess_time_to_update  = 100;
var $encryption_key   = '';
var $flashdata_key   = 'flash';
var $time_reference   = 'time';
var $gc_probability   = 5;
var $userdata    = array();
var $CI;
var $now;

in my system/libreries.

Why it expire?
#2

[eluser]GabrieleMartino[/eluser]
i found this

http://ellislab.com/forums/viewthread/172415/

and i set a very large number for session expire.
#3

[eluser]InsiteFX[/eluser]
if your using IE change the sess_cookie_name to cisession IE does not like the underscore
it converts it a hex 09
#4

[eluser]GabrieleMartino[/eluser]
I don't use IE, I use Mozilla. Any way I take care of the visitor of my site, which I hope can be used by from every browser with no limitation. Any way so far I tested also on IE and it goes well.

Thank you




Theme © iAndrew 2016 - Forum software by © MyBB