Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

.htaccess & passwd

Featured Replies

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 :blush1:

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.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.