[thelist] Sessions in PHP4
Anthony Baratta
Anthony at Baratta.com
Tue Jul 25 11:17:35 CDT 2000
Liz Lawson wrote:
>
> Hi out there
>
> Does anyone know whether in PHP4's session management, the session ids are
> unique forever (maybe part of the string is generated from the date and
> time), or just unique in the sense that at any one time, all active sessions
> have a unique Id?
I wouldn't depend uponthe session IDs being unique forever. Even with IIS they are
only unique till you reboot the machine.
If you decide to roll your own ID, you are still going to have to hit the main table
to verify that the ID is unique, why not turn on auto-numbering for the main table,
insert there first - grab the auto-ID and then insert across all the other tables
using the captured auto number? Still two hits, less pain.
--
Anthony Baratta
President
KeyBoard Jockeys
South Park Speaks Version 3 is here!!!
http://www.baratta.com/southpark
Powered by Tsunami
More information about the thelist
mailing list