My question is whether it is possible to collect a variable in localStorage from PHP without sending it.
I intend to collect data in a query where I activate an option in a list and send a form but I want to determine if the user is logged in and this is the variable that I have in localstorage. I can not send it from the form because it is a list (or not).
Something similar to collecting the value of a $ _SESSION ['data'] in PHP.
I hope I have raised it correctly. I apologize if it is not like that.
Greetings