Clear Customer Cache

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 лет назад
How can i clear out the cache so that any admin users that are currently logged in get logged out?

Thanks

Simon
14 лет назад
simon20 wrote:
How can i clear out the cache so that any admin users that are currently logged in get logged out?

Thanks

Simon


Hi Simon,

Cache is not used for authentication.

There are a couple of ways of doing this. One way is to intercept Application_AuthenticateRequest on the MembershipHttpModule. You would need to set some kind of flag in your database that indicated that admins should be logged out.

An alternative would be to add some code to the BaseNopAdministrationMaster page to check for the same flag and then call CustomerManager.LogOut.

Of course you need some way of setting the flag other than through the web app as otherwise you can lock yourself out.

HTH
Ben
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.