Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 654167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:27:53+00:00 2026-05-13T22:27:53+00:00

I use an <Authorize> attribute in ASP.NET MVC to secure a controller. My page

  • 0

I use an <Authorize> attribute in ASP.NET MVC to secure a controller. My page loads portions of its content via AJAX. Here’s a problem I have with IE8, but not Firefox 3.6:

  1. Sign in as user JohnDoe and navigate to http://www.example.com/AjaxPage. Everything works fine. AjaxPage is protected with the <Authorize> attribute.
  2. Sign out, which redirects me to http://www.example.com. That page doesn’t use <Authorize>.
  3. Navigate to http://www.example.com/AjaxPage without signing in again. I should be redirected to the Sign In page since that controller has the <Authorize> attribute.

Step 3 works with Firefox, but IE8 displays the non-Ajax portion of http://www.example.com/AjaxPage and then never loads the Ajax content. I’m surprised any content is displayed at all since I should be redirected to the Sign In page.

My code redirects to the login page with:

Return Redirect("https://login.live.com/wlogin.srf?appid=MY-APP-ID&alg=wsignin1.0")

Why does Firefox handle this redirection, but IE doesn’t? Since it works the first time (Step 1 above), is there a cache issue?

EDIT: I used Fiddler to see if AjaxPage was being cached, but it appears not to be. I assume if it were cached, I’d get an HTTP Status Code 200 back. I may simply misunderstand this though.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:27:54+00:00Added an answer on May 13, 2026 at 10:27 pm
    [OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
    

    This attribute, placed in controller class, disables caching. Since I don’t need caching in my application, I placed it in my BaseController class:

    [OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
    public abstract class BaseController : Controller
    {
    

    Here is nice description about OutputCacheAttribute: Improving Performance with Output Caching

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are trying to create a more specific [Authorize] Attribute for Asp.Net MVC [AttributeUsage(AttributeTargets.All)]
I am using asp.net mvc 1.0. I know asp.net mvc has a couple attribute
i'm trying to use OutputCaching in my ASP.NET MVC website. Problem is, when i
I have an jquery .ajax posting to a asp.net mvc method that has an
I currently use the default forms authentication method for my ASP.NET MVC application. above
I'm a web developer looking to move a lot of clients to use authorize.net
I use the following URL setting to authorize Facebook login. But the page for
In the ASP.NET MVC site I am building, I have some methods where the
We're currently rewriting our organizations ASP.NET MVC application which has been written twice already.
I'm confused on ASP.NET MVC caching and authorization and in dire need of some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.