Welcome Guest, Not a member yet? Register   Sign In
CI Session regenerate ID
#1

[eluser]Mareshal[/eluser]
How can I regenerate session id in CI? like session_regenerate() in simple PHP instead of creating another session(cookie) ?
#2

[eluser]Tom Schlick[/eluser]
ive never ran into a situation where i would need this but im pretty sure this would work for you...

Code:
$this->session->sess_create();
#3

[eluser]Mareshal[/eluser]
but, I've been talking last days with a friend, php developer for a few years now. I told him about CI sessions, that they are using cimple encrypted cookies. But cookies can be stolen easily. WHy CI sessions are better that php session ?
#4

[eluser]Tom Schlick[/eluser]
thats the thing though. if you use the db with cookies (setting in your config) it only stores the session id information in the cookie and all of the sensitive information in the database. then if you make it match against the user agent / ip etc it will make them even more secure.




Theme © iAndrew 2016 - Forum software by © MyBB