EllisLab text mark
Advanced Search
     
CI Session library improvement
Posted: 22 November 2009 09:50 AM
Avatar
Joined: 2009-11-22
41 posts

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!

 Signature 

Shay Ben Moshe - Web Developer.
Exalted Web (my portfolio - Hebrew)
Zend Certified Engineer