c# - Authorize attribute and changed database -


I have coded the C # MVC 5 internet application and a question about the authorize attribute is. / P>

Is this controller better protection for this feature?

Here's the situation that I have ... If a user enters a user name and password, and then logs in with the user name and password, then the user will be able to access the attribute could reach.

If I change the name of the database, as if a new database is created, the index view loads, the view still thinks that the user is logged in, and authorizing the attribute, You can use.

Is there any way to stop this? Should I have a quick check to see if the user name and password are correct for the current database or is there any easier / better way?

The question is, do you really have this problem? If you change the name of your database name, then you should restart your MVC application or full webserver. The other way of logging out all users described in

is

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -