Session is null in ashx handler

  • Thread starter Thread starter Jan Kucera
  • Start date Start date
J

Jan Kucera

Hi,
why is session object null if the ashx file is requested? How can I force
to create session when the request is to custom handler?

Thanks,
Jan
 
At what point are you trying to get the session?
For instance, it wouldn't be available inside of a constructor or a finalizer
 
Yes, that was the point as I found on the web later. Sorry for the FAQ, the
answer was easier than I thought it would be.
Jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top