Welcome Guest, Not a member yet? Register   Sign In
Help, Session problems.
#1

[eluser]benyu[/eluser]
some session problems about obsession.
config.php copy:
Code:
//codeigniter session.
$config['sess_cookie_name']        = 'vszone.net';
$config['sess_expiration']        = 0;
$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']     = 7200;
// [OB] additional config items:
$config['sess_storage']             = 'database';
$config['sess_database']            = 'default';
$config['sess_timeout']             = 0;
$config['sess_destroy_on_timeout']  = FALSE;
$config['sess_update_interval']     = 300;
$config['sess_gc_probability']      = 10;
$config['sess_http_only']           = FALSE;
$config['sess_send_hdr']            = '';

//cookie configuration.
$config['cookie_prefix']    = "";
$config['cookie_domain']    = "";
$config['cookie_path']        = "/";

got problems:

1、Why each page has own record in sessions table?
even i refresh the same page once it was added one record again?

2、Why session has saved ,but others page can't get it?
in a function has used :
$sess = array('uid'=>1,'name'=>'test');
$this->session->set_userdata($sess);
redirect("/",'refresh');
and in the view page used;
$this->session->userdata('uid');//it's empty!

3、the cookie vszone.net value not only contains session_id, but all other values.


Messages In This Thread
Help, Session problems. - by El Forum - 06-15-2008, 07:18 AM
Help, Session problems. - by El Forum - 06-19-2008, 12:48 PM
Help, Session problems. - by El Forum - 06-29-2008, 07:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB