On a new site I'm making, sessions are not working. They were working previously, and stopped without a single change of the code.
Once a login goes through the verification, it runs:
$_SESSION['uid'] = getIdFromEmail($email);
getIdFromEmail is a function I built to get the user's ID from their email address.
But the session does not register, as when I do
I get "Notice: Undefined index: uid". I did check by printing "success" to make sure the login was OK. Of course, I have a session_start at the top of the page.