passwords and members sections

NeonWarrior

New Member
Messages
137
Reaction score
0
Points
0
anyone got any ideas? does x10 let us change apache files or somthing i dunno how members areas work, but i want to password rptoect a directory so that any page access will ask for password and username but if moving from page to page it wont ask again and again untill you exit the directory

is this possible?
 

rickle42

New Member
Messages
59
Reaction score
0
Points
0
You could just do it from scratch using html.
<form action="validate.php" method="post">
<input type="textfield" size="10" maxlength="20"/>
<input type="password" size="10" maxlength="20"/>
<input type="submit"/>
Any php you call from the validate.php will be protected if you use x10's hotlink protection and protect php extensions. In other words they cant type the url.php in address bar, it will just give a 404 error. So the validate.php needs to check the database for a username/password that was entered and if it exists move forward , else ask for password and username again.
This form is only a rough sketch from memory, to give a general idea....
If you have never made a database call you may not want to go this route.
I am sure there is a tool for this nowadays...
 
Top