Welcome Guest, Not a member yet? Register   Sign In
how does session data manipulation work with cookies?
#4

[eluser]WanWizard[/eluser]
No.

Native sessions are inheritly insecure, and even more so on a lot of shared hosts. CI doesn't come with it's own session library for nothing. Wink

CI's session library is secure, but unfortunately the defaults are not the best they could have picked. So in your application/config/config.php:
Code:
$config['sess_cookie_name']  = 'cisession'; // get rid of the underscore, IE doesn't like it
$config['sess_encrypt_cookie'] = TRUE; // do encrypt the cookie
$config['sess_use_database'] = TRUE; // store session data in the database, not in the cookie
$config['sess_match_ip']  = FALSE; // if you don't have users with alternating proxies, set this to TRUE too
and create the session database as documented in the user guide.


Messages In This Thread
how does session data manipulation work with cookies? - by El Forum - 05-21-2012, 01:49 PM
how does session data manipulation work with cookies? - by El Forum - 05-21-2012, 02:19 PM
how does session data manipulation work with cookies? - by El Forum - 05-21-2012, 02:57 PM
how does session data manipulation work with cookies? - by El Forum - 05-21-2012, 03:27 PM
how does session data manipulation work with cookies? - by El Forum - 05-21-2012, 03:35 PM
how does session data manipulation work with cookies? - by El Forum - 05-21-2012, 04:51 PM
how does session data manipulation work with cookies? - by El Forum - 05-22-2012, 10:45 AM
how does session data manipulation work with cookies? - by El Forum - 05-22-2012, 10:55 AM
how does session data manipulation work with cookies? - by El Forum - 05-22-2012, 11:44 AM
how does session data manipulation work with cookies? - by El Forum - 05-22-2012, 12:09 PM
how does session data manipulation work with cookies? - by El Forum - 05-22-2012, 01:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB