php - How to simply generate unique key only for current session? -


is there way generate 1 unique key , save cookie current session until browser close?

$key = uniqid(mt_rand()); 

session_id unique id, try

$key = session_id(); 

Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -