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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Forms Authentication Cookie Deleted???Forms Authentication Cookie Deleted???
Previous
 
Next
New Post
4/25/2012 9:05 AM
 

I am running DNN v5.6.7, but not sure if this is really a DNN issue or a .NET one.

I have built a single-sign on page for a third party application and included it in my DNN file system. The page is called MySSO.aspx and it's in a folder called MySSO. It is not a DNN module, just a vb.net aspx page.

The problem I am having is that as soon as I redirect to this page, my forms authentication cookie is being deleted and therefore MySSO.aspx cannot identify & process the user.

I have checked permissions on the folder, I have created a web.config for the folder granting access to all users, but I cannot fix this issue? It is running on IIS7 under the .NET 4 frmaework.

Any suggestions?

 
New Post
4/25/2012 10:49 AM
 
just to make this a little more confusing, the cookie doesn't get deleted if I am logged in as my host user, but it does with other users??????
 
New Post
4/25/2012 11:20 AM
 
this is expected behaviour - when a .net mapped request (aspx/ashx/asmx etc.) occurs it runs through the urlrewriter to see if it needs rewritten, it also runs through the security code to check the approriate permissions. As DotNetNuke supports multiple portals, this second item checks to see if the user has changed portal, to see if it needs to expire the auth cookie - if you use a custom aspx then DotNetNuke does not know what portal that belongs to (it extracts the page name, in this case "mysso" and doesnt find a refernce to it so can't determine the portal and decides this is a change of portal). In this type of case you need only include either a tabid or portalid in your request and then dotnetnuek can determine that it comes from a request for that portal and not log you out (the reason the host is not logged out is that it automatically has all permissions for all portals)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/25/2012 11:56 AM
 
Thanks for the explanation Cathal.

Unfortunately I don't think I can add a tabid or portalid as that would give an invalid path.

What is really bugging me is that this deletion of the forms authentication cookie doesn’t happen in any of my other environments. Is the behaviour you describe above fairly recent? My other sites are either V4.9.4 or V5.5.1.

The cookie deletion also doesn't happen on my local machine running V5.6.7
 
New Post
4/25/2012 1:33 PM
 
perhaps your other sites dont have child/parent portals (I believe the check short circuits if there is only 1 portal). I'm not sure why you can't use a portalID, perhaps I didnt explain well - the request can look like www.mysite.com/desktopmodules/somemodule/mysso.aspx?portalID=0

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Forms Authentication Cookie Deleted???Forms Authentication Cookie Deleted???


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