Click here to Skip to main content
14,327,464 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all

I have a chat room web site that use Ajax to update it's content.
also I use a ASHX handler to handle resquests from Ajax.
but in function ProcessRequest, the object context.session is null. why?
I also tried with context.ApplicaionInstance.Session but no luck

please help me out

regards
abforce
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Generic handlers must implement the IReadOnlySessionState interface to access session variables. If you also need to write session variables, implement IRequiresSessionState.

i.e. somthing like:

public class MemberHandler:IHttpHandler,IRequiresSessionState 
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100