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  |  

telerik -- supercharge your DNN websites
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  how to use the same cookie for DNN and CS?
Previous Previous
 
Next Next
New Post 5/5/2006 7:33 PM
User is offline Fabianus
225 posts
9th Ranked


how to use the same cookie for DNN and CS? 
Modified By Fabianus  on 5/28/2006 10:32:23 AM)
Hello!

I use DNN and CS (working on the same Membership application). Now what I want is that if a user logged in either through DotNetNuke or through CommunityServer and he switches to the other portal (DNN=>CS or CS=>DNN) the user does not need to re-login. I suppose this might be achieved with the cookie, but I do not know much about cookies. Where is defined the cookie of DNN that registers if someone is logged-in?

Thank you very much for any help!

Regards,
Fabian

 
New Post 5/21/2006 2:51 PM
User is offline Bryan Hughes
19 posts
www.brigidcollins.org
10th Ranked


Re: how to use the same cookie for DNN and CS? 

I have the same question.

 

-Thanks for the help

Bryan

 
New Post 7/13/2006 12:15 PM
User is offline Bryan Hughes
19 posts
www.brigidcollins.org
10th Ranked


Re: how to use the same cookie for DNN and CS? 

I was able to configure it under DNN 4.3.2 and CS 2.0

On the dnn side in the signin.aspx.vb

Add to the Private Sub cmdLogin_Click ...

Else 'Login Success
   If loginStatus = UserLoginStatus.LOGIN_SUCCESS Then
      Dim strUserID As String
      Dim strEmail As String
      strEmail = objUser.Membership.Email.ToString
      strUserID = txtUsername.Text
      Response.Cookies("CSUser")("username") = strUserID
      Response.Cookies("ICVUser")("emailAddress") = strEmail
   End If
   UserAuthorized(objUser, False) 'make sure this runs after your custom cookie or it will not be created.
End If

On the CS 2.0 side purchase the CustomAuthentication Add-On and configure to the help file settings.

Bryan

 
New Post 7/23/2006 9:27 AM
User is offline Vladan Strigo
505 posts
Vladan.Strigo.NET
8th Ranked




Re: how to use the same cookie for DNN and CS? 

If CS is a sub application to DNN (in a sub folder) you should have bean able to just delete the cookie settings from CS's web.config and it should have inherited them from DNN's web.config - and thus using the same same auth cookie (I've tried this from one of the DNN and CS integration tutorials)

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post 7/23/2006 12:33 PM
User is offline digitalbill
9 posts
10th Ranked


Re: how to use the same cookie for DNN and CS? 
 Vladan Strigo wrote

If CS is a sub application to DNN (in a sub folder) you should have bean able to just delete the cookie settings from CS's web.config and it should have inherited them from DNN's web.config - and thus using the same same auth cookie (I've tried this from one of the DNN and CS integration tutorials)

 



what? you've got to be kidding me.  Would be nice
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  how to use the same cookie for DNN and CS?
 


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.

 


AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com
Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com
SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com

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