0
Good afternoon, what would be the best way to save a user’s login data? I have a PHP login system that validates user and password via ajax and if everything is ok, I want to save the data (email in case) to be used in other points of the system. I thought about using session, but I don’t think we can create/record a session with javascript, so I thought about localStorage but I don’t think it would be safe. What would be the best way? I use PHP, jquery, ajax and javascript. Grateful.
Use
SESSION
php.– WMomesso
Thanks for the reply, I thought about it, but as I use ajax for a refresh-free login of the page, I do not know how I would save a session considering that javascript does not handle ajax.
– Ronaldo Lopes