Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  httpHandler & Loggin "Can you explain this"
Previous Previous
 
Next Next
New Post 10/10/2007 5:33 AM
User is offline Bassel Issa
55 posts
10th Ranked


httpHandler & Loggin "Can you explain this" 
Modified By Bassel Issa  on 10/10/2007 8:36:01 AM)

Hi All,

I installed a new instance of DNN 3.3.7 and i built a new skin which was simple and easy. the skin contains a dynamicly generated image (header image).

this image should render the current Page title based on a special font. so i crossed my fingers and pointed to GDI+ and HttpHandler. and i built a handler that works with the following verbs

 

<add verb="*" path="*.pagetitle.aspx" type="ImageTitleHandler.myHandler,ImageTitleHandler" />  

 

and added the dll file to the bin folder of the DNN project and append the httphandlers section at the web.config

it was perfectly done. and i got the image in the skin object as follows

 

<ack:PAGETITLE runat="server" id="mypagetitlte"></ack:PAGETITLE> 

where PAGETITLE is a skinobject that read the activetab.title and give it as an image source to the <image runat="server" id="myImage">

 

 

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 

TryCatch exc As ExceptionMe, exc) 

myImage.Src = "~/" & PortalSettings.ActiveTab.Title & ".pagetitle.aspx"

 

ProcessModuleLoadException(

End TryEnd Sub  

 

 

 

 

 everything was perfectly working. and pretty nice. untill the stage that i created a child portal (portals/1)  which i create based on a template that exacltly contains the same strucutre of the (portals/0)

and i copied the same skins folders that i used for (portals/0) to the skins folder under portals/1 since i was using the skins under the Site for each. 

but i found that the new admin user of the (portals/1) is losing his logging session on every request. and after hours of stuggeling. the problem solved once i removed the pagetitle skin object from the skin file which use the httpHandler. so if i did use that skin object in my skin (admin user will loose his session on every login) only at the (portals/1) instance. while it works fine with any admin user in (portals/0). and the strange is superUser (HOST). hadn't that problem with both instances (portals/1) and (portals/0)....

is there any role permission for the handlers ????  or should i do anything to the web.config related to the new instance (portals/1) ???

 

any input please ??

 

 

 

 
New Post 10/10/2007 7:54 AM
User is offline Bassel Issa
55 posts
10th Ranked


Re: httpHandler & Loggin "Can you explain this" 

I SOLVE IT.

the problem behind losing the session is (rewriting the urls). since the handler is still using .aspx page so it got involved with the rewriting handler module.

and the child portal has extra word in its Alias name so what i did is

myImage.Src = "http://" & PortalSettings.PortalAlias.HTTPAlias & "/" & PortalSettings.ActiveTab.Title & ".pagetitle.aspx" 

and that solved the issue completely :)

LUCKY ME:)

 
New Post 10/10/2007 10:21 AM
User is offline Mitch Sellers
5566 posts
www.mitchelsellers.com
3rd Ranked




Re: httpHandler & Loggin "Can you explain this" 

Glad you were able to resolve this issue, this is something I'll be sure to keep in mind.


-Mitchel Sellers
MCITP, MCPD, MCTS
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I reccomend 3Essentials for shared hosting and BaseCamp for project management
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  httpHandler & Loggin "Can you explain this"
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk
Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP