sub generateSession { # generate random 8 digit hex session ID return sprintf("%0.8x",rand()*0xffffffff); } [download]
In reply to Generate a session ID by Spidy