-
Temporary ID
i want to make an temporary ID for each visitor of my website. when anyone enter my website i want to make an temporary ID for this user and store some data to a table using this ID. my website has not any login system.
is it possible or any different idea?
-
Re: Temporary ID
you can use sessions or cookies to store temporary information, and unless you plan on keeping the information then you don't need to use a database to store the information. if you're logging it though, you can, i suppose.
-
Re: Temporary ID
well..
Assalam Allykum and Eid Mubarak :)
You can try :
PHP Code:
$TempID = md5(uniqid(rand(), true));
Then Store $TempID in Database, Cookies, Sessions or whatever...
-
Re: Temporary ID