Session state is not available in this context. - (For certain fi

G

Guest

I am using global.asax to check a session variable on each request to a page,
but if the page is not processed by .net such as a pdf file the session state
is not available.

I reference a session variable in Application_AcquireRequestState function
which should have state and it does when I call aspx, asmx, but not pdf file.

I can alter the web.config of the .net framework to assign
System.Web.UI.PageHandlerFactory to *.pdf but this doesn't work.

Is there a way to get around this? Other than checking for a call to a pdf
file and not checking for session.

Thanks in advance
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top