2012-03-27 23 views
0

Kohana的會話數據不會保留網頁打開的Chrome和IE瀏覽器Kohana的會話數據不能跨網頁中鉻堅持和IE瀏覽器

精細同一作品在Firefox瀏覽器

使用

Kohana的版本2.3

會議配置文件舉行

$config['driver'] = 'native'; 

/** 
* Session storage parameter, used by drivers. 
*/ 
$config['storage'] = ''; 

/** 
* Session name. 
* It must contain only alphanumeric characters and underscores. At least one letter must be present. 
*/ 
$config['name'] = 'NITWSESSID'; 

/** 
* Session parameters to validate: user_agent, ip_address, expiration. 
*/ 
$config['validate'] = array(); 

/** 
* Enable or disable session encryption. 
* Note: this has no effect on the native session driver. 
* Note: the cookie driver always encrypts session data. Set to TRUE for stronger encryption. 
*/ 
$config['encryption'] = FALSE; 

/** 
* Session lifetime. Number of seconds that each session will last. 
* A value of 0 will keep the session active until the browser is closed (with a limit of 24h). 
*/ 
$config['expiration'] = 2700; 

/** 
* Number of page loads before the session id is regenerated. 
* A value of 0 will disable automatic session id regeneration. 
*/ 
$config['regenerate'] = 0; 

/** 
* Percentage probability that the gc (garbage collection) routine is started. 
*/ 
$config['gc_probability'] = 2; 

幫助需要迫切

回答

0

對不起,我認爲這可能應該是對您的問題的評論,但我還沒有該特權。

無論如何,你是否使用正確的語法來實例化會話?

$this->session = Session::instance() 

$this->session = new Session(); 

http://dev.kohanaframework.org/issues/2225
顯然在Firefox的第二部作品,但會導致在IE中的問題,隻字未提鉻。