Good afternoon, what would be the best way to save user login data? I have a login system in PHP that validates username and password via ajax and if everything is ok, I want to save the data (email in case) to be used elsewhere in the system. I thought about using session, but I do not think I can create / save a session with javascript, so I thought of localStorage but I do not think that would be safe. What would be the best way? I use PHP, jquery, ajax and javascript. Thankful.