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

  • Home
  • SEARCH
  • 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 6839823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:45:57+00:00 2026-05-26T23:45:57+00:00

I currently use the default forms authentication method for my ASP.NET MVC application. above

  • 0

I currently use the default forms authentication method for my ASP.NET MVC application.

above all of my actionmethods that require authentication I have this attribute

[Authorize()]

When someone tries to call the page that that action method “serves” and they haven’t yet logged in, it sends them to the login page…perfect! However, if their session times out and they try to hit that page, they’re also just redirected to the login page with no indication of why. I’d like to be able to determine if it’s a new visit, or if it’s a timeout and display a different message on the login screen accordingly.

Is that possible?

  • 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-26T23:45:58+00:00Added an answer on May 26, 2026 at 11:45 pm

    On sign-in, you can set a cookie that’s tied to the browser session. If that cookie exists, you know that the session timed out. If not, you know it’s a new visit.

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

Sidebar

Related Questions

Currently, I'm converting a web application from web forms to ASP.NET MVC. The project
I'm trying to figure out how when using the default asp.net forms authentication stuff
Our company is currently running a asp.net Webforms 3.5 website as the default website
I am currently working on an MVC application where I use a lot of
I'm learning how to use the asp authentication, and I have created a test
I am using the built in Forms authentication in an MVC3 application. The issue
Currently it seems that I can only use effects in their most basic form
I am building a web based application written in ASP.NET and Flex. One of
We're using ASP.NET and IIS 6.0. I realise that the definitions of applications, websites
I'm currently trying to use multiple reports so that when a user selects an

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.