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

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

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