advanced code snippet search
jadedbat on 03/13/09
php session md5 uniqid token
2 people have marked this snippet as a favorite
PHP 5 needed.
<?php // create the token md5'd and uniqid$token = md5(uniqid(rand(), TRUE)); // store it in a session$_SESSION['token'] = $token; echo $_SESSION['token']; ?>
Report this snippet
You need to login to post a comment.