Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - member API doesn't respect blnDatabaseHeldSession
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

member API doesn't respect blnDatabaseHeldSession

 Post Reply Post Reply
Author
cludwig View Drop Down
Newbie
Newbie


Joined: 01 October 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote cludwig Quote  Post ReplyReply Direct Link To This Post Topic: member API doesn't respect blnDatabaseHeldSession
    Posted: 01 October 2007 at 9:41pm
functions_member_API.asp doesn't respect setting blnDatabaseHeldSession to true in /includes/setup_options_inc.asp ( used to force the code to store session data in the DB instead of in Session() variables ).

Our production system consists of several machines in a cluster ("web garden"?), and as such Session variables don't work.  To enforce this (ensuring that well meaning but poorly informed developers don't use Session) IIS on all of our servers is set to not enable Session State.

When functions_member_API.asp attempts to set Session() variables with username, password, and email address, it fails on a server configured thusly throwing a 500 error ("Microsoft VBScript runtime (0x800A01F4) Variable is undefined: 'Session').

Seems that if there's going to be the option ("blnDatabaseHeldSession") that it ought to be respected everywhere -- if not then I would expect odd behaviour in clustered environments.

Any suggestions for workarounds (other than the obvious "Enable Session State in IIS,") -- which I feel certain will allow the site to work most of the time but will cause some weirdness when servers are changed mid-session?

If the four session variables ( Session("USER"), Session("PASSWORD"), Session("EMAIL"), and Session("ForumUSER")) were only used in the one file, then I wouldn't bother asking, and would just change them to local variables.  Unfortunately, some of them also seem to be referenced in functions_login.asp and log_off_user.asp.

I guess the thing to do would be to have those variables also call functions_session_data.asp functions just like any other Session() variables elsewhere.

Hopefully that's a robust report?

PS - New user and so far very happy... Smile
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: 02 October 2007 at 8:26am
To keep the Member API as simple as possible to setup it requires that the data from your own login system be passed across in ASP session variables ( Session("USER"), Session("PASSWORD"), Session("EMAIL")). The last one Session("ForumUSER") is used to keep track that the user hasn't logged in as a different user halfway through the forums session.

Once the data from the ASP session has been passed across to Web Wiz Forums it then uses it's own session system, which is kept in a database if enabled. The only time the ASP session variables passed across from your own login system are referenced is to keep the forum and your own login system in sync which prevents some strange login, logoff issues if it is not.

If you are not using ASP session variables at all then the Member API will simply not run, and instead you will probally need to get a developer to look for some custom solution to integrate your login system with the forum. Maybe look at updating the forums database directly from your own member system.


Edited by -boRg- - 02 October 2007 at 8:33am
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.