What is the best way to make PHP login really secure?
I'am now using just SESSION["logged"] = "true"; after I check password in SHA256 with salt and whole time, when logged, I am just checking this SESSION.
Is more secure to save some hash into database + session and after checking password check hash too?