Solved

.htaccess & caching

Posted on 1998-04-21
6
144 Views
Last Modified: 2013-12-25
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
0
Comment
Question by:seanD
  • 3
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
percyn earned 100 total points
ID: 1827702
You can force authentication (assuming that you are using Basic Auth) by sending a "401 access denied" HTTP status message.

0
 

Author Comment

by:seanD
ID: 1827703
thanks for the helpi am using Basic Auth...but how do i force a "401 access..."?

sean
0
 
LVL 3

Expert Comment

by:percyn
ID: 1827704
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 5

Expert Comment

by:julio011597
ID: 1827705
Doesn't a 401 rensponse generate a "Authentication failed. Retry? OK - Cancel" confirm dialog first?
0
 
LVL 3

Expert Comment

by:percyn
ID: 1827706
Yes, but that's the only way.
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1827707
Duh!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question