Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - strLoggedInUserCode / strLoggedinUsername
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

strLoggedInUserCode / strLoggedinUsername

 Post Reply Post Reply
Author
Hydrogen View Drop Down
Newbie
Newbie
Avatar

Joined: 25 January 2005
Location: United Kingdom
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hydrogen Quote  Post ReplyReply Direct Link To This Post Topic: strLoggedInUserCode / strLoggedinUsername
    Posted: 15 July 2007 at 2:22pm
Hello there,

I was just wondering about the login system on version 9...

I currently run version 8 on my website, and I include "common.asp" in the header of all my non-forum pages.  Then I can reference to "strLoggedInUsername" or "strLoggedInUserCode" and it comes back with the relevant  result.

My question is, I cannot seem to do this now with version 9 IF the script is outside of my "forum" folder is there any reason you could think of why this happens?
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: 15 July 2007 at 3:49pm
Nothing has chnaged with regards to login except that cookie management has been improved. You may need to include the functions_common.asp file if it is calling functions that are with this file.
Back to Top
Hydrogen View Drop Down
Newbie
Newbie
Avatar

Joined: 25 January 2005
Location: United Kingdom
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hydrogen Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2007 at 3:01pm

Well I'm just stuck then.

If I include common.asp then functions_common.asp is automatically included too.
 
I have figured it gets to a point in "fuctions_login.asp" where there is an IF statment 'If NOT strLoggedInUserCode = "" Then...'
...which it does not go into, so the database is not queried.
 
but I cannot understand why the strLoggedInUserCode doesn't equal anything.
Cry
 
 
Back to Top
Hydrogen View Drop Down
Newbie
Newbie
Avatar

Joined: 25 January 2005
Location: United Kingdom
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hydrogen Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2007 at 5:07pm
GOOD NEWS

I found out that the 'setup_options_inc.asp' file has a variable called "strCookiePath" in it.  This is something to do with scripts only being able to access a cookie from a cartain URL.

It had been set as "/test/forum", so I simply changed it to "/test/" (my testing directory for a new site) and my problem is solved.

good work borg Big%20smile can't wait for the final version.


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.