Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

.htaccess & caching

Posted on 1998-04-21
6
Medium Priority
?
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
percyn earned 400 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
Quick Start: DOCKER

Sometimes you just need a Quick Start on a topic in order to begin using it.. this is just what you need to know to get up and running with Docker!

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

721 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