manage VUE - Laravel Session Keys
Hello , I would like to know what is the best approach to handle session in Laravel ( backend) and VUE in ( Frond end ) .
I need to store user interaction in Redis / Laravel but the front is a single App Application in VUE, so I need to send to Laravel a user unique Key to start recording user interactions .
I have two approach that I can follow .
-
create a KEY ID from a random string with ( date and time + random number ) that user did the first access in the website . and save this string in the a javascript local storage or Cookie . and send it to Laravel .
-
the second way would be creating in Laravel a Personal Passport, and store the passport id in Javascript local storage .
I think the best way would be the second , but I don't know if I cold create so many personal passport IDS , for all each users that enter on the website , if is a new user , I have to create a new laravel personal for him , I dont know if it could overload the Laravel server with so many Passport Personal Ids .
Please or to participate in this conversation.