Welcome Guest, Not a member yet? Register   Sign In
CI Session library improvement
#1

[eluser]Shay Falador[/eluser]
Hey there,
I am new at this forum.

I have been looking for the last hour for a solution for regenerating CI session id.
But, I saw many solutions and non of them was what I am looking for, so I decided to simply add a few things to the default library.
I would like to hear what do you think of this, but first, what have I done:

- Added the method new_id which regenerates the sessions id
- Added the variable had_new_id which holds TRUE if either the method update or new_id
were executed.
- Edited the method update to set had_new_id to TRUE

The code is here Smile

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB