2016-04-13 18 views
0

私はCI3フレームワークとApache 2.6をWebサーバーとして使用しています。セッションはまだCI3で期限切れです

私はユーザーのログイン用にセッションを使用しています。

設定ファイルのセッション設定以下です。

$config['sess_driver'] = 'files'; 
$config['sess_cookie_name'] = 'usersessionx'; 
$config['sess_expiration'] = 0; 
$config['sess_save_path'] = NULL; 
$config['sess_match_ip'] = FALSE; 
$config['sess_time_to_update'] = 0; 
$config['sess_regenerate_destroy'] = FALSE; 

上記のように、session_expirationは期限切れではない0に設定されました。

問題は、私のユーザーの中にはセッションタイムアウトが発生していて、他のページをクリック/ナビゲートするとログインページにリダイレクトされるという問題でした。

私は周りのGoogleでしたが、問題を解決することはありません。

提案があれば歓迎します。

ありがとうございました。

答えて

1

パスの値はNULLに設定されています。

/* 
|-------------------------------------------------------------------------- 
| Session Variables 
|-------------------------------------------------------------------------- 
| 
| 'sess_save_path' 
| 
| The location to save sessions to, driver dependent. 
| 
| For the 'files' driver, it's a path to a writable directory. 
| WARNING: Only absolute paths are supported! 
| 
| For the 'database' driver, it's a table name. 
| Please read up the manual for the format with other session drivers. 
| 
| IMPORTANT: You are REQUIRED to set a valid save path! 
| 
*/ 

Docs

関連する問題