[thelist] Check for auth w/o forcing logon?

Anthony Baratta Anthony at Baratta.com
Wed Apr 3 13:15:00 CST 2002


At 11:03 AM 4/3/2002, Dougal Campbell wrote:
>Is there a way (ASP or PHP) to check whether a user has previously
>authenticated on our site (Basic auth), without forcing them to actually
>logon if they hadn't? In other words, I want to give them different
>content, depending on whether they have previously visited a
>password-protected page elsewhere on the site.

There maybe in the HTML headers:

         AUTH_PASSWORD
         AUTH_TYPE
         AUTH_USER

Check those after you have logged in and are visiting a non-protected page.
--
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."




More information about the thelist mailing list