Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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:

C#
public class MemberHandler:IHttpHandler,IRequiresSessionState 
 
Share this answer
 

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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900