Welcome Guest, Not a member yet? Register   Sign In
Code Igniter Session problem
#41

[eluser]ram reddy[/eluser]
[quote author="hassan.live" date="1193081397"]Hello

i've tried to use code igniter session library and used ci_session table for added security. so far it was working perfectly in my local machine both IE and firefox. but as soon i have uploaded that in to my client server (php 5) ; i saw that the site is running in Mozilla firefox perfectly but
if i run the site in Internet Explorer(IE), then the site couldnt save the session data.

what is the problem any suggessions?[/quote]

$config[‘sess_cookie_name’] = ‘ci_session’;
$config[‘sess_expiration’] = 0;
$config[‘sess_encrypt_cookie’] = FALSE;
$config[‘sess_table_name’] = ‘ci_sessions’;
$config[‘sess_match_ip’] = FALSE;
$config[‘sess_match_useragent’] = TRUE;
// [OB] additional config items: Set to ‘database’ to keep userdata exclusively on server database.
$config[‘sess_storage’] = ‘database’;
// [OB] additional config items: You can leave these as defaults for a standard session
$config[‘sess_data_cookie’] = ‘ci_session_data’;
$config[‘sess_database’] = ‘default’;
$config[‘sess_timeout’] = 0;
$config[‘sess_destroy_on_timeout’] = FALSE;
$config[‘sess_update_interval’] = 180;
$config[‘sess_gc_probability’] = 10;
$config[‘sess_http_only’] = FALSE;
$config[‘sess_secure’] = FALSE;
$config[‘sess_forwarded_ip’] = FALSE;

go to http://bleakview.orgfree.com/obsession/
#42

[eluser]InsiteFX[/eluser]
For IE you need to change the this! IE doe's not like the underscore in cookie names!
Code:
// From this:
$config['sess_cookie_name'] = 'ci_session';

// To this:
$config['sess_cookie_name'] = 'cisession';

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB