Yes, I know using separate tables for users and admins is possibly not the best method for a number of reasons, but I am doing this because I have numerous levels of of users, and numerous levels of admins. So each will only have access to a certain part of the website to be able to edit or use, and due to the admin side consistently changing access levels (decisions by committee), I found it easier to handle it this way.
Anyways... I am trying to edit the 'WA Set Cookie Values' for the four items in the server behaviours panel by double-clicking them and then naming them accordingly, but it doesn't seem to be changing anything. So I thought I'd do it by hand and just wanted to double-check that I am changing everything needed.
Here's the code created by the security assist wizard:
if ((isset($_POST["UserUpdate_submit"])&&(isset($_COOKIE["RememberMeUN"]))&&(isset($_POST["User_Update_group_Username"])) && $_POST["User_Update_group_Username"] != "")) {
setcookie("RememberMeUN", "".((isset($_POST["User_Update_group_Username"]))?$_POST["User_Update_group_Username"]:"") ."", time()+(60*60*24*30), "/", "", 0);
Could you confirm the code I need to change is:
$_COOKIE["RememberMeUN"] to $_COOKIE["AdminRememberMeUN"]
and
setcookie("RememberMeUN" to setcookie("AdminRememberMeUN"
Is there anything else I need to change?
Thanks.