Is it safe to store a password in a session variable?
For example, use will be in a form that is left to its own devices.
For example, the ad change page, where users first enter the password, and then, if pass = ok, show the form for the change classified. All on one php page.
But whenever the image is loaded in the “change” part of the php page, the form should be sent to itself again.
Should I use a store session password here to make sure that the user is actually a user and that he is safe?
In other words, is it safe to store something like this:
if($pass==$row['password']){
$_SESSION['pass_ok']='1';
}
thank
user188962