View Single Post
  #2 (permalink)  
Old 10-17-03, 02:53 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
I think there is no pretect-folder script up there yet , and I think it's not possible ...
you have to protect all files inside this folder ..
and yes you have to use sessions or cookies , in my current script I've used cookie method , and it's not that difficult! all you have to do is to define a function that checks for the cookie ! if the user has no cookie it will show error message and redierct him to login page ..
all you have to do is define this function and then call it in all the pages you want to protect ...
also you can have multi-privilaged system using the same method by defining a function to check that ..

sadly the script I wrote isn't in this machine I am using right now , or I would love to show it for you to give you a better view of what I mean
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote