Question

I have a HTTPHandler that won't deploy on a hosted version of SP 2010 as they only allow Sandbox code. Typically of course.

The handler simply checks for the SignOut.aspx page and does Session.Clear to more fully log users out.

Does anyone know of a way to run code like this in a Sandbox Solution? I can't use an Event Receiver as there isn't an event type for logging out.

Suggestions greatly appreciated.

Using VS 2010 & SharePoint Foundation 2010

Was it helpful?

Solution

Sandbox code is very restricted. The process that executes the logic does not even have HttpHandlers, and only a limited Request/Response.

I guess you could try:

  1. Create your own logout page in the site
  2. Add a control to your custom page to clear the session
  3. Replace the logout control in your master page, with a redirect to your own page
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top