I,m having a little problem understanding a small line in a php program?
hi
i,m not a programmer and i,m new to programing and design, i have been using dw cs3 and when i do something i look at the codes and try to understand whats going on, i recently got a dwcs3 extension, which is called smart e-mailer, and to make it work i have to change the code and introduce a user name and password, which is no problem. but then i,m instructed to change a line which is listed as " Yoursession", i have add the code below for you too see,
$_SESSION['UserSession'] = "youruserid"; // customize your UserId
$_SESSION['PassSession'] = "yourpass"; // customize your Password
if (isset($_POST['send'])) {
if ($_POST['UserID'] == $_SESSION['UserSession'] && $_POST['Password'] == $_SESSION['PassSession']) {
$SessionPassword = "yoursession"; // customize the accessing session
session_register("SessionPassword");
header("Location: SmarteMailManagerPro.php");
} else {
header("Location: error.php");
the line i,m confused about is $SessionPassword = "yoursession"; // customize the accessing session,
i,m not sure what this means what would i change "yoursession" too.
i have tryed too add the password i inserted into the database, obviously i,m doing something wrong , can anyone advise me,
Thank you
G,M
I don’t think it matters what you put in there. You just have to make sure you use that password throughout the site anywhere it checks your session to make sure your allowed to be there. Using a random string is good for this so its difficult to hack in by guessing what it is.
I don’t think it matters what you put in there. You just have to make sure you use that password throughout the site anywhere it checks your session to make sure your allowed to be there. Using a random string is good for this so its difficult to hack in by guessing what it is.
References :