Good day,
I am sending e-mail with php and I use user’s session
for example :
$subject_user_name= $_SESSION['User']['User_Name'].' '.$_SESSION['User']['User_Surname'];
$subject_baby_name= $profil['Baby_Name'].' '.$profil['Baby_Surname'];
$subject = sprintf("%s added first for %s ",$subject_user_name,$subject_baby_name);
Problem : for everyone $_SESSION is working but for one user it is not working, and my mail’s subject going like this = ” added first for Martin”
I need your help. Maybe it is a browser issue.
This user might have cookies disabled or have other tight security measures in place. You can ‘catch’ this problem by checking if the session keys actually have values, like this:
Alternatively, you could check for just the first or last name, rather then both.