Hi all,
I'm not sure if this is entirely the right section to post this, but i will start here anyhow.
The problem i have is straight forward. I want to set up a password login are so that to access example.html they first need to enter a password... Now this was fine i thought i'd just use .htaccess and .htpasswd. But i found out its a windows server, and to my knowledge this wont work? (please correct me if im wrong!) So i looked at my next option, my host has a secure database section on the server, so i thought i would create a password database and have a little code that refered to that.
For this i was thinking of firstly checking if the username exists in the database, and if that passes checking if the corresponding password is correct.
Now this would all be fine, but then i get my new problem! Using the database option how do i restrict access to the page. What i mean is once they have visited once, they know what the .html page is and they can just type that in and goto that, bypassing the password system, unlike .htaccess where it would not let you.
Please help, i'm at a loss here. Is this a good way to do it, how should i do it, or am i missing a really simple way of doing it, even though it is a windows server!
Thanks in Advance.
I'm not sure if this is entirely the right section to post this, but i will start here anyhow.
The problem i have is straight forward. I want to set up a password login are so that to access example.html they first need to enter a password... Now this was fine i thought i'd just use .htaccess and .htpasswd. But i found out its a windows server, and to my knowledge this wont work? (please correct me if im wrong!) So i looked at my next option, my host has a secure database section on the server, so i thought i would create a password database and have a little code that refered to that.
For this i was thinking of firstly checking if the username exists in the database, and if that passes checking if the corresponding password is correct.
Now this would all be fine, but then i get my new problem! Using the database option how do i restrict access to the page. What i mean is once they have visited once, they know what the .html page is and they can just type that in and goto that, bypassing the password system, unlike .htaccess where it would not let you.
Please help, i'm at a loss here. Is this a good way to do it, how should i do it, or am i missing a really simple way of doing it, even though it is a windows server!
Thanks in Advance.