Solved

.htaccess & caching

Posted on 1998-04-21
6
148 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 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
Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

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

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

752 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