Print Page | Close Window

Automatic Login Cookie Question

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=30642
Printed Date: 30 March 2026 at 11:31pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Automatic Login Cookie Question
Posted By: Romnus
Subject: Automatic Login Cookie Question
Date Posted: 22 January 2013 at 9:45pm
Hey forum,

      Just want some insight before I proceed to initiate an auto log in feature for my site. I will be using the API for this, however I have a question. When the cookie is return, what do I then do. I assume I must place the cookie in the browser via my code and this will allow the forum to login in the user. Is this correct? Thanks



Replies:
Posted By: WebWiz-Bruce
Date Posted: 23 January 2013 at 9:27am
Which API are you using?

There are two API's, the HTTP XML API or the Member Login API.


-------------
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: Romnus
Date Posted: 23 January 2013 at 11:05pm
Bruce,

    I am using HttpAPI.asp.  LoginMemberCookie.  Thanks.


Posted By: WebWiz-Bruce
Date Posted: 24 January 2013 at 10:12am
The API will return the information required to construct and set a cookie in your own code which will then auto log the user in to your forum.

-------------
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: Romnus
Date Posted: 24 January 2013 at 2:09pm
Ok. Thanks for clearing that up for me.


Posted By: Romnus
Date Posted: 09 May 2013 at 11:47pm
Been a long time for a follow up question, been busy. Anyhow...

What values should I use. I was using all and it did not log in the user.

<ApiResponse>
<ErrorCode>0</ErrorCode>
<ErrorDescription/>
<ResultData recordcount="1">
<Record>
<Username>sahil42</Username>
<UserID>305241</UserID>
<CookieName>wwf10sLID</CookieName>
<CookieKey>UID</CookieKey>
<CookieData>sahil4u-61DE-996-DB34-A2DA</CookieData>
<CookiePath>/</CookiePath><CookieDomain/><ForumPath>http://forums.xxxxx.com/</ForumPath>
</Record>
</ResultData>
</ApiResponse>

Additionally, I was using a similiar Vb.net code to place the cookie in the browser.

Response.Cookies.Remove("XXXXX")
Response.Cookies("XXXXX").Value = AppSettings("CookieBlockSL").ToString + read.GetString(2).Trim
Response.Cookies("XXXXX").Expires = DateTime.Today.AddYears(10)



Posted By: WebWiz-Bruce
Date Posted: 10 May 2013 at 10:31am
From the information you have back you need to create a cookie with the name:-

wwf10sLID

This cookie needs to have the cookie key UID with the CookieData:-

UID=sahil4u-61DE-996-DB34-A2DA


-------------
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



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