Print Page | Close Window

HTTPXML API - How to populate forum 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=29657
Printed Date: 01 April 2026 at 4:22am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: HTTPXML API - How to populate forum cookie
Posted By: dotcom
Subject: HTTPXML API - How to populate forum cookie
Date Posted: 14 August 2011 at 6:28pm
Is there any documentation or an example anywhere on how to populate a session cookie for  WebWiz using the data returned by the HTTPXML API LoginMemberCookie method?

Thanks,






Replies:
Posted By: WebWiz-Bruce
Date Posted: 15 August 2011 at 9:21am
The XML returned by the HTTP XML API is not to create a session cookie but to create the auto login cookie to auto login the user to the forum.

Thed XML returned gives both the cookie key name and the data associated with that key. So you create a cookie using the key name as the cookie name and the data as the data part of the cookie.


-------------
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: 17 August 2011 at 1:50pm
Thanks Bruce, but I am having problems with this cookie. The scenario I am using is as follows. I have a web site and WebWiz installed on two different subdomains of the same domain. When the user logs in on the website I retrieve the cookie data from the HTTP XML API, create a new cookie using it, and adding /setting it to the Response.Cookies collection. I set the cookie domain to the root domain for both webs (domain = .mydomain.com).

Both webs can access the cookie (I'm using FireCookie to examine cookies), but WebWiz does not show the user as logged in.

Have I done something wrong?

Also, in our production scenario, the two webs will not share a domain. How can I create the autologin cookie for the WebWiz domain?


Posted By: dotcom
Date Posted: 17 August 2011 at 1:51pm
Again, any sample code for how this is done, would be very useful.




Posted By: WebWiz-Bruce
Date Posted: 18 August 2011 at 9:12am
Have a look at auto cookie crated by your web wiz forums installation and then try to create a matching cookie yourself.

It should look something like:-

Name: wwf10sLID
Content: UID=username838hd838jdhd7ehdju7erhdy73tdby


-------------
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: 18 August 2011 at 9:34am
In the end that's what I did. And to get the cookie to be valid for the forum, the forum has to be in the same domain (ie a subdirectory of the main web). Then it all works correctly. There is no way of creating a valid cookie for another domain for security reasons.



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