Session is null in ashx handler

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
 
G

Guest

At what point are you trying to get the session?
For instance, it wouldn't be available inside of a constructor or a finalizer
 
J

Jan Kucera

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top