Home > Net >  User login timeout solution
User login timeout solution

Time:11-04

I have a web project, web. Config the sessionState expiration time for 30 minutes, which is the user if there is no request, 30 minutes of the session will be expired, that is to say, when the user clicks a button, the background ashx method must know users expired, that I need in every ashx method to determine whether the user expired? Is there any interceptors what, as long as there is a request, after my first interceptor

CodePudding user response:

Online, such as reply,

CodePudding user response:

Write inside the webform and validation of the MVC user login, equal to check the session expires
https://blog.csdn.net/hanjun0612/article/details/50509429

CodePudding user response:

refer to the second floor is nu month god reply:
write inside the webform and validation of the MVC user login, equal to check the session expires
https://blog.csdn.net/hanjun0612/article/details/50509429


I am so create a project

CodePudding user response:

You created the MVC, according to the tutorial way of MVC filters or base class, write about it

CodePudding user response:

refer to 4th floor are nu month god reply:
you create the MVC, then according to the tutorial mode of MVC filters or base class, write a good

What I mean is, the MVC box, type is empty

CodePudding user response:

reference 5 floor spy0505 reply:
Quote: refer to 4th floor are nu month god reply:
you create the MVC, then according to the tutorial mode of MVC filters or base class, write a good

What I mean is, the MVC box, type is empty

Your web project, what kind of?
Is the aspx page at the end, or the CSHTML, or other?

CodePudding user response:

reference 6 floor is anger god reply:
Quote: refer to the 5 floor spy0505 response:
Quote: refer to 4th floor are nu month god reply:
you create the MVC, then according to the tutorial mode of MVC filters or base class, write a good

What I mean is, the MVC box, type is empty

Your web project, what kind of?
Is the aspx page at the end, or the CSHTML, or other?

The empty types, the front is HTML, the background is ashx

CodePudding user response:

refer to 7th floor spy0505 response:
Quote: refer to the sixth floor is nu month god reply:
Quote: refer to the fifth floor spy0505 reply:
Quote: refer to 4th floor are nu month god reply:
you create the MVC, then according to the tutorial mode of MVC filters or base class, write a good

What I mean is, the MVC box, type is empty

Your web project, what kind of?
Is the aspx page at the end, or the CSHTML, or other?

The empty types, front is HTML, the background is ashx

Again, inherits a base class, in the base class session
https://blog.csdn.net/macrohui29/article/details/20297971

In addition, can also pass the module in the config Settings,
  •  Tags:  
  • C#
  • Related