Question about Protect page with session
Posted: Sat Jun 02, 2012 3:14 pm
hello guys , iam trying to protect some pages on my script, i want control on session who can show this page i make somthing but after i check i see that's works with 1 name only i want make it allow to many name here is example to be more clear
$pro = $user_data['username']; if ($pro != "drama", "another name", "another one") { die ('You are not allowed to use this page'); }if i make only one name it works normal but if i make to many names i get page error any thing to fix this ?