Click to See Complete Forum and Search --> : session_regenerate_id(), worth it?


Perfidus
11-25-2003, 06:00 AM
I'm working with sessions for a data uploading form.
When customers finish uploading data about one item they can unlog or they can start uploading data again about another item.
Cause session is registered in database and have been seted up as "unique", It will cause an error of duplicate entry.
I wonder if I can use this function "session_regenerate_id();" to reset all session and to store new session ID in database and bring the customer the uploading interface again without make them go to the User-Password page.

pyro
11-25-2003, 10:02 AM
Yes, I believe that will work fine. Alternativly, you could just check if the session is in the DB before you try to insert it...