Current location - Quotes Website - Signature design - asp.netwebapi personal authentication token?
asp.netwebapi personal authentication token?

Write an asp:LinkButton button in the aspx page: LogoutRun the page and view the source code Take a look at what HTML code the newly added logout button is parsed into, it is roughly as follows Set the newly added linkbutton to the invisible attribute LogoutRemodify the background code Literal1.Text=\"

  • \"+((users)Session [\"users\"]).Name.ToString()+\"
  • Logout
  • Information modification
  • \";//That is, binding the tag's js event to the hidden logout button event.

    Currently, I am using a webapi interface project developed in VS2013, which is mainly used as the backend of the app. Now all the data on the app comes through accessing my api interface. Identity verification uses personal identity verification, using the Access_Token method. Verification, all apps use the same account and password. This was originally designed because I found that the tokens obtained by an account and password are different and can be used at the same time. However, a problem has arisen now. What if I want to disable a certain user's token?