I am working with a PHP and HTML project and have two scenarios.
Scenario 1
The user generates a URL with a GUID that identifies the user. The GUID is stored in a database.
scenario 2
If the user visits the page with an already generated GUID I want to be able to GET the GUID from the URL and use it in my whole project.
The user's URL will look like this
http://localhost/mini/album/index/GUID eg http://localhost/mini/album/index/6957da07-7cd0-4f0e-a300-fa9ecdf79d0a
I know how I'll get the guid from url and when the user has generated a new guid but where do I store it temporary as long as the user visits the page? I am thinking about using global variables, HTML5 Local Storage or if its possible to use sessions for this. What do think is the best solution and do you have any other suggestions?