Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - [Suggestion] for Member API
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Suggestion] for Member API

 Post Reply Post Reply
Author
GottaLoveIT View Drop Down
Newbie
Newbie


Joined: 21 February 2008
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote GottaLoveIT Quote  Post ReplyReply Direct Link To This Post Topic: [Suggestion] for Member API
    Posted: 22 February 2008 at 6:58pm

I am using V 9.08.

We have strict site control and our main site logs a user out if they close the browser.  However, when opening the site again, the Forum was still logged in.  In tracking this down, I noticed in the Member API Functions file, at the end, you have these 2 cookie settings:


Call setCookie("sLID", "UID", strNewUserCode, True)
Call setCookie("sLID", "NS", "0", True)

I changed them to:


Call setCookie("sLID", "UID", strNewUserCode, bolMemberApiAutoLogin)
Call setCookie("sLID", "NS", "0", bolMemberApiAutoLogin)

And then after the:


Const strMemberAPILogoutURL = "/logout.asp"

and before the:


'****************************************************************************************

I added:


'Enable or disable auto login when user returns
'------------------------------------------
'Set to True if you want the Forum to be logged in automatically when user returns, even if user
'is not logged in to your main authentication. Set to False if you do not want user automatically logged in.

Const bolMemberApiAutoLogin = "False

This fixed the problem. 

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.