Note that there are some explanatory texts on larger screens.

plurals
  1. POC# MVC Site Forcing Users to Re-authenticate
    primarykey
    data
    text
    <p>I have a website written with the C# MVC 3 framework using Forms authentication. The site allows anonymous viewing for most of its content but has a directory containing PDF documents that require users to be authenticated to view. </p> <p>This works nearly all the time but occasionally an authenticated user will have a problem. When they click on a document they repeatedly get redirected to the login screen, forcing them to re-authenticate. Once they do they are then redirected to the document. Not a complete disaster but still annoying for users. Another scenario would be an authenticated user opening one of the PDF document just fine, but if they click on a link in that document that redirects them to another PDF document in the same directory, the system will then force them to re-authenticate. </p> <p>I first thought this may be a browser/cookie issue but from what I can gather by talking to users with this problem, it can happen with Firefox or IE, and with history/cookies enabled. Months ago I too experienced the problem in a hotel using their public WI-FI, but I've never experienced it at work using my office connection or at home.</p> <p>The website allows anonymous user access but the directory where the PDF documents reside contains the following web.config file:</p> <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;authentication&gt; &lt;deny users=”?” /&gt; &lt;/authentication&gt; &lt;/system.web&gt; &lt;/configuration&gt; </code></pre> <p>I am completely stumped as to what may be going on with these users. Any ideas would be extremely helpful.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload