ajax Session in Generic Handler / Chrome problem

794 Views Asked by At

I have an generic handler in C# (.ashx) that should read the Session Variables. When sending a jQuery Ajax request to the generic handler, the Session variables are null.

I've tried to add IRequiresSessionState to the class, with no luck. In IE everything works ok. But in Google Chrome I can not make it work.

Any ideas?

Thanks,

jaan

1

There are 1 best solutions below

0
On

Implement your handler with IRequiresSessionState like:

public class Handler : IHttpHandler, IRequiresSessionState

get session value: context.Session["xyz"]