PDA

View Full Version : Perl Sessions / Cookies


dan_c00per
04-03-2003, 11:32 AM
How do you create / use session variables or cookies in Perl? I am new to Perl programming, I usually use PHP, but for this specific project i must use Perl, but I cannot work out how to use sessions or cookies, either will do the job.

Can anyone give me a basic example?

YUPAPA
04-03-2003, 11:58 PM
#!/usr/bin/perl

print sprintf("%08.8x",rand()*0xffffffff);

__END__


This will generate a session ID for you.