B
B
Boris the Animal2015-12-02 17:09:05
ASP.NET
Boris the Animal, 2015-12-02 17:09:05

ASP.NET forms authentication. How to automatically log out after restarting IIS? How to know that IIS has been restarted?

Setting from web.config:

<authentication mode="Forms">

    </authentication>

How to know that IIS has been restarted?
While came to mind at the first authorization to write in HttpContext.Current.Application to save something. When restarting, just check if there is no record, then log out everyone. And how to do it, you need to think more. There are some thoughts, but it is necessary to check.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question