September 15, 201115 yr I have restricted a directory using the above method. Do they work on a 'timed' or 'session' basis, or should you have to enter the User/Pass Credentials EVERY time you attempt access? I note the AuthType is 'Basic', is there a more advanced/secure method off hand? To elaborate... On testing it several times I see that it first asks for the Username/Password that I've created before I can access the directory. Great! This is what I want. I notice that once entered, I can access the directory again without re-entering the creds. I further tested it by clearing all cache/history/cookies etc and it asked for NO UN/PW. After clearing everything again, all of a sudden it asked for the credentials? Many thanks from a confused and 'should know this by now' weekend programmer
September 15, 201115 yr Its based on the session timeout, so the session will stay open for as long as the browser is open or however long it is configured to in the apache conifg. You can auth based on cookies if you want it to stay open but there is no (correct) method of logging out using HTTP auth. Basic AuthType means it uses the systems default crypt() method, the other AuthType is digest, which is an encrypted string using an algorithm like md5.
September 16, 201115 yr Author Its based on the session timeout, so the session will stay open for as long as the browser is open or however long it is configured to in the apache conifg. You can auth based on cookies if you want it to stay open but there is no (correct) method of logging out using HTTP auth. Basic AuthType means it uses the systems default crypt() method, the other AuthType is digest, which is an encrypted string using an algorithm like md5. Thanks, Jock That's cleared it up for me and given me a direction to look in! Cheers K
Create an account or sign in to comment