Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Cookies Leaving A Bitter After Taste
#3

[eluser]TheFuzzy0ne[/eluser]
That's exactly what I thought, so I cleared my cookies, and alas, the problem was still present.

User data prints out correctly after being set, but it's lost as soon as I make a new request, although the CI session related data is still there.

Code:
Array
(
    [session_id] => a44b5e728bfb7e437c8ad594024a0cfa
    [ip_address] => 192.168.1.72
    [user_agent] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) Ap
    [last_activity] => 1242914999
)

One thing I've noticed, though. The session ID changes on each request.

Here's some info from my config.php:

Code:
/*
|--------------------------------------------------------------------------
| 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']       = 'ci_session';
$config['sess_expiration']        = 0;
$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;

Please don't forget, this isn't important. Using encryption is not a problem for me in the slightest, I just thought it was a strange issue.


Messages In This Thread
CodeIgniter Cookies Leaving A Bitter After Taste - by El Forum - 05-21-2009, 04:34 AM
CodeIgniter Cookies Leaving A Bitter After Taste - by El Forum - 05-21-2009, 07:41 AM
CodeIgniter Cookies Leaving A Bitter After Taste - by El Forum - 05-21-2009, 08:11 AM
CodeIgniter Cookies Leaving A Bitter After Taste - by El Forum - 05-21-2009, 08:18 AM
CodeIgniter Cookies Leaving A Bitter After Taste - by El Forum - 05-21-2009, 08:21 AM
CodeIgniter Cookies Leaving A Bitter After Taste - by El Forum - 05-21-2009, 12:52 PM
CodeIgniter Cookies Leaving A Bitter After Taste - by El Forum - 05-21-2009, 08:44 PM
CodeIgniter Cookies Leaving A Bitter After Taste - by El Forum - 05-22-2009, 03:31 AM
CodeIgniter Cookies Leaving A Bitter After Taste - by El Forum - 07-10-2009, 10:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB