Can't read the value of a session variable in ashx in Firefox?

When logging in, I use the puttign user ID in the session variable, and then from the next page I send the request to ashx. Here is the problem. I cannot read the session variable here and get the error message "The refrence object is not installed in the object instance." It works fine in IE, but this error is observed in FF.

My ashx file implements IReadOnlySessionState.

+4
source share
2 answers

you need to have this in your ASHX file

public class LoginAuthentication : IHttpHandler, IRequiresSessionState 

as you enter the user ID in the session.

0
source

All Articles