As merlyn has pointed out in the past, you can use the following code to generate a unique session_id. If you are going to use it for generating a file to save the CGI object in, be sure to use Taint checks.
use MD5;
sub generate_id {
return substr(MD5->hexhash(time(). {}. rand(). $$. 'blah'), 0, 16)
+;
}
You may find
this recent discussion relevant.
-Lee
"To be civilized is to deny one's nature."