Page 1 of 1
Php Session ID
Posted: Wed Nov 03, 2004 12:10 pm
by bdeonline
Will the session id allways be unique, will php ever use the same session id twice?
Posted: Wed Nov 03, 2004 12:40 pm
by rehfeld
yes session ids will be resued. theres only a finite amount of ids it can issue, so eventually, all ids will be duplicates. but its a pretty big number of diff ids......
but thats why garbage collection is done frequently on the session files.
Posted: Wed Nov 03, 2004 1:49 pm
by hedge
I believe that the id is built by doing an md5 on the timestamp so in theory they are unique. I have heard rumours that an md5 collision has been proven though.