Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Automatic Login Cookie Question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Automatic Login Cookie Question

 Post Reply Post Reply
Author
Romnus View Drop Down
Groupie
Groupie


Joined: 16 September 2009
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Romnus Quote  Post ReplyReply Direct Link To This Post Topic: Automatic Login Cookie Question
    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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Romnus View Drop Down
Groupie
Groupie


Joined: 16 September 2009
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Romnus Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2013 at 11:05pm
Bruce,

    I am using HttpAPI.asp.  LoginMemberCookie.  Thanks.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (1) Thanks(1)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Romnus View Drop Down
Groupie
Groupie


Joined: 16 September 2009
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Romnus Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2013 at 2:09pm
Ok. Thanks for clearing that up for me.
Back to Top
Romnus View Drop Down
Groupie
Groupie


Joined: 16 September 2009
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Romnus Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.