Interview Question in SQL Server 2005


 

Interview Question :: Password dialogue for a website


i am creating a website. i want a little windows style box to pop up if they click on a certain link, so that ppl have to log on.

if you need a picture of what i mean please send me an email:

john[dot]edwards717 [at] homecall [dot] co [dot] uk

please note i dont have an SQL Server thing and I am just doing this on Windows XP Media Centre 2005, and will be storing the website files on Windows XP Home.
Answers to "Password dialogue for a website"
RE: Password dialogue for a website?

If you are creating a web site, then you have a web server running. Which one? I don't know about IIS, but with Apache you can control access to every directory using .htaccess file, where you enter access privileges. Apache then takes automatically care of asking passwords etc.
 
Vote for this answer ::  
RE: Password dialogue for a website?

not sure aout the other response the link seems to relate to another thing altogether



You need to have a server side scripting language installed php or asp and the password needs to be in a file on the server.



The code in web pages runs on the machine that downloads the page (and so you view it) if you don't have a server side language people can see the code and get round or see the password.



With a server side language you can only see the output of the code and not the code itself
 
Vote for this answer ::  
Update Alert Setting