02-29-2012, 05:10 AM
[eluser]Unknown[/eluser]
Hi. Session dont work in Opera & IE browser's. Session work fine in FF and Chrome. what is the problem ?
P.S.
on denwer it's work on all browser!
for example : in IE and Opera result always 'no' after i go on /index.php/welcome/creat/ . http://autotrading.lviv.ua/temp/index.ph...ome/creat/
My config.php:
help me ! sorry for bad english.
Hi. Session dont work in Opera & IE browser's. Session work fine in FF and Chrome. what is the problem ?
P.S.
on denwer it's work on all browser!
for example : in IE and Opera result always 'no' after i go on /index.php/welcome/creat/ . http://autotrading.lviv.ua/temp/index.ph...ome/creat/
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Welcome extends CI_Controller {
var $login ;
public function __construct() {
parent::__construct();
$this->load->library('session');
$this->load->helper('url');
$this->login = $this->session->userdata('login');
}
public function index()
{
if($this->login) {
echo 'ok';
}
else {
echo 'no';
}
}
public function creat() {
$this->session->set_userdata('login','yes');
redirect('/welcome');
}
public function destroy() {
$this->session->sess_destroy();
redirect('/welcome');
}
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */
My config.php:
Code:
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";
$config['cookie_secure'] = FALSE;
help me ! sorry for bad english.