Welcome Guest, Not a member yet? Register   Sign In
Use of sess_time_to_update
#2

[eluser]dmorin[/eluser]
I had to do something similar once. My solution was not to use the session id but to create an additional field in the session that contained a long-term id (that's what I called it) that wouldn't get updated when the session ID was regenerated. I ended up just extending the session class and in the function that creates the session, I add a field to the userdata portion and store an MD5 or SHA1 hash in it. That way every new session has a long-term-id by default. You also don't loose out of the security feature of quickly updated session ids.

CI 2.0 FEATURE REQUEST:
Add hooks/events to the session library
pre-create, post-create, pre-update-id, post-update-id, etc


Messages In This Thread
Use of sess_time_to_update - by El Forum - 04-20-2010, 01:41 AM
Use of sess_time_to_update - by El Forum - 04-20-2010, 07:27 AM
Use of sess_time_to_update - by El Forum - 04-20-2010, 07:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB