sessions and cookies
-
This code dosen’t set the cookie (It’s not there when I look in google inspector)
session_start(); $psw=$_POST["psw"]; if (strlen($psw)>0) { setcookie("thepsw", "12345", time()+3600, '/'); $_SESSION["thepsw"]=$psw; } var_dump($_COOKIE); var_dump($_SESSION);
It sets the session, but when I go to another wordpress screen, it has lost the session value too. I would like a solution for both if pos, please.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘sessions and cookies’ is closed to new replies.