Print Page | Close Window

strLoggedInUserCode / strLoggedinUsername

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=23787
Printed Date: 07 April 2026 at 7:48am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: strLoggedInUserCode / strLoggedinUsername
Posted By: Hydrogen
Subject: strLoggedInUserCode / strLoggedinUsername
Date 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?


-------------
Signature?



Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
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: Hydrogen
Date 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
 
 


-------------
Signature?


Posted By: Hydrogen
Date 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.




-------------
Signature?



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