.htaccess & caching

Not sure of this is the proper forum, but...
Scenario:
User arrives at the front door, hits "enter"...they sign in as "client1" , password "open"...they look at whatever and then decide that they would like to see the stuff in "client2" (because that's just another job for the same client) they go back to the enter page...they hit enter..and get sent to client1, without being asked for a sign-in...? It just remembers that they've already signed in as client1...

can I force the sign in?

I'm using a perl redirect script to send the user to the appropriate place based on username.

thanks,
sean
seanDAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
percynConnect With a Mentor Commented:
You can force authentication (assuming that you are using Basic Auth) by sending a "401 access denied" HTTP status message.

0
 
seanDAuthor Commented:
thanks for the helpi am using Basic Auth...but how do i force a "401 access..."?

sean
0
 
percynCommented:
Depends on what server you are using. In IIS, you can set the Response.Status to "401 access denied". There is something similar for Netscape servers too, but you will have to check your server docs.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
julio011597Commented:
Doesn't a 401 rensponse generate a "Authentication failed. Retry? OK - Cancel" confirm dialog first?
0
 
percynCommented:
Yes, but that's the only way.
0
 
julio011597Commented:
Duh!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.