For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > May 2006 > Re: tutorial on dynamic SID generation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: tutorial on dynamic SID generation
lorento

2006-05-31, 4:01 am


Nospam wrote:
> Is there a tutorial on dynamic SID generation?


What do you mean with SID? Is it session ID?

You can try this code if you want to generate dynamic session ID:

<?php

$randomNumber = rand(10000, 20000) . microtime();
$randomValue = md5($randomNumber);
$randomValue = substr($randomValue, 16);

$SID = md5($randomValue);

?>

regards,

Lorento
--
http://www.mastervb.net , http://www.padbuilder.com ,
http://www.immersivelounge.com

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com