Thread: Security Token?
View Single Post
Old 12-11-2008, 06:57 AM   #2 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

I have no idea, but how about:
PHP Code:
if($_SESSION['token'] == '')
{
       
$_SESSION['token'] = 'random string';

that way, the token is only generated if the user don't already have a token.
But I'm not sure if this would actually work as a security then.
__________________
Tanax is offline  
Reply With Quote