Print Page | Close Window

Login cookie

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=30009
Printed Date: 31 March 2026 at 9:41pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Login cookie
Posted By: dotcom
Subject: Login cookie
Date Posted: 01 December 2011 at 12:41pm
I'm integrating a DotNetNuke site with WebWiz so that when a user logs on to DNN, they are automatically logged on to WebWiz.

When the user logs in, I am use the HttpXmlApi to retrieve the login cookie data, and attaching it to the Request.Response.Cookies collection. This functionality is working correctly, and I have verified that after logging in, a cookie with name wwf10sLID is present with a value in format
NS=0&UID=testuser101-7A5E-961-124F-5D84. This mimics what happens when the user actually logs in directly to the forum. 
Both the forum and the DNN site share the same domain, so the cookie should be accessible by both sites.

However when I navigate to the forum after logging in to DNN, the forum does not show the user as logged in, as I would expect.

Have I missed something here?

Help appreciated with this.

Regards,




Replies:
Posted By: WebWiz-Bruce
Date Posted: 01 December 2011 at 2:19pm
Not sure what cookie prefix you have given your forum, but the default is 'wwf10' not 'wwf10sLID'.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: dotcom
Date Posted: 01 December 2011 at 2:57pm
The cookie prefix is configured as wwf10, but the authentication cookie (as far as I am aware) has the name wwf10sLID. Is that not the case?


Posted By: dotcom
Date Posted: 01 December 2011 at 3:00pm
What I did was to log on to the forum normally, and inspect the login cookie. I then programmatically create a similar cookie using data retrieved from the HttpXmlApi and attach it to the response, when the user logs in to DNN.


Posted By: dotcom
Date Posted: 01 December 2011 at 3:29pm
It's OK, I have solved the problem. Thanks.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net