Validate session before it reach the required service method

Topics: Web Api
Dec 21, 2010 at 12:45 PM
Edited Dec 22, 2010 at 6:05 AM

Hello,

I want to check a user session (my implementation of session), before it comes to the real service method user asked .

if the session is valid continue to the service method, if not return http response with http status code "not authorized".

In the past I have used RequestInterceptor class, what do I use now?

I understand I can use the Processor but how?

To override the onEXECUTE method? How can I cause it not to continue to the service?

Thanks in advanced,

Alon