Welcome Guest, Not a member yet? Register   Sign In
Session issue
#1

[eluser]bhakti.thakkar[/eluser]
Hello,
I have three applications of CI working on same domain. The problem is if all three are running parallel and if i log of from one, i automatically log off from the other two as well. So that means that the sessions is getting unset or killed
I am using user defined sessions library
Below are my settings in config.php for sessions and of course the name (encryption_key , sess_cookie_name , cookie_prefix) are different for all three

Code:
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class or the Sessions class with encryption
| enabled you MUST set an encryption key.  See the user guide for info.
|
*/
$config['encryption_key'] = "bits_encryption_key_Gg2F5";

/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'session_cookie_name' = the name you want for the cookie
| 'encrypt_sess_cookie' = TRUE/FALSE (boolean).  Whether to encrypt the cookie
| 'session_expiration'  = the number of SECONDS you want the session to last.
|  by default sessions last 7200 seconds (two hours).  Set to zero for no expiration.
| 'time_to_update'        = how many seconds between CI refreshing Session Information
|
*/
$config['sess_cookie_name']        = 'bits_sessions';
$config['sess_expiration']        = 3600;
$config['sess_encrypt_cookie']    = TRUE;
$config['sess_use_database']    = FALSE;
$config['sess_table_name']        = 'sessions';
$config['sess_match_ip']        = FALSE;
$config['sess_match_useragent']    = TRUE;
$config['sess_time_to_update']     = 300;

/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path'   =  Typically will be a forward slash
|
*/
$config['cookie_prefix']    = "bits";
$config['cookie_domain']    = "";
$config['cookie_path']        = "/";

/*


Messages In This Thread
Session issue - by El Forum - 06-02-2010, 06:35 AM
Session issue - by El Forum - 06-02-2010, 11:11 AM
Session issue - by El Forum - 06-02-2010, 10:44 PM
Session issue - by El Forum - 06-03-2010, 08:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB