During my script, CI updates the periods table on database whenever it changes the session id. The truth is, I have to realize that id whenever it changes. Simply I wish to record it some different put on the database and keep the particular recording. How could I actually do it?

Found my very own answer. system/libraries/Session.php line:383 Obviously the road number might differ, but when you search the next string, you'll learn where CodeIgniter is altering the session_id on database: 'session_id' => $new_sessid