Welcome Guest, Not a member yet? Register   Sign In
Session does not work in Opera and IE
#1

[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/
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.


Messages In This Thread
Session does not work in Opera and IE - by El Forum - 02-29-2012, 05:10 AM
Session does not work in Opera and IE - by El Forum - 02-29-2012, 05:23 AM
Session does not work in Opera and IE - by El Forum - 02-29-2012, 05:36 AM
Session does not work in Opera and IE - by El Forum - 02-29-2012, 06:06 AM
Session does not work in Opera and IE - by El Forum - 02-29-2012, 02:12 PM
Session does not work in Opera and IE - by El Forum - 03-08-2012, 11:36 AM
Session does not work in Opera and IE - by El Forum - 03-08-2012, 12:14 PM
Session does not work in Opera and IE - by El Forum - 03-08-2012, 12:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB