06-06-2017, 12:14 PM
Hi there,
How can I go about assigning my guest users some sort of ID for logging purposes? Every guest visits landing.php where they must enter their name, and this is the last reference I have to track who did what unless the user logs in. If they are logged in, the user_id column is logged in the logs table, but if they aren't, it just uses user ID 30 which is guest. How can I assign some type of ID for each session and it inputs, for example, in a column called "user_name" the name of the guest who submitted the request.
I hope this is enough information, if not let me know and I will break it down more.
How can I go about assigning my guest users some sort of ID for logging purposes? Every guest visits landing.php where they must enter their name, and this is the last reference I have to track who did what unless the user logs in. If they are logged in, the user_id column is logged in the logs table, but if they aren't, it just uses user ID 30 which is guest. How can I assign some type of ID for each session and it inputs, for example, in a column called "user_name" the name of the guest who submitted the request.
I hope this is enough information, if not let me know and I will break it down more.