Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Why are ashx handlers being run through the URL Rewrite HttpModule?Why are ashx handlers being run through the URL Rewrite HttpModule?
Previous
 
Next
New Post
8/5/2010 10:17 AM
 
Recently I wrote a Text-To-Image .ashx handler. I noticed a particular problem with child portals, authenticated users would be logged out immediately after login. Meaning, they could access a site after login, but clicking any link resulted in a new login form. After logging in again, the same thing happens, over and over again. This only happened with child portals and with user accounts other than the SuperUser account, which worked fine.

The problem is that the ashx requests to my image handler are being run through the Url Rewrite  HttpModule. The Url Rewrite Module requires a portalid in its query string if the request is of type .ashx. If there is no portalid specified, the session's current portal id is being reset to Portal 0. Which obviously confuses the authentication process.

Questions:

a) Why do I have to specify a portalid querystring parameter in all my ashx handlers / Why does the Url Rewrite HttpModule bother to handle .ashx requests?
b) Why isn't this documented? If it is, where is it documented?

DNN Version is 5.1.3
 
New Post
8/5/2010 2:47 PM
 
any links to DNN modules (aspx or ashx) require a tab or portalid, otherwise they are logged out for security reasons. Why don't you pass portalid to your ashx file?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Why are ashx handlers being run through the URL Rewrite HttpModule?Why are ashx handlers being run through the URL Rewrite HttpModule?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out