Print Page | Close Window

UserID

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=22123
Printed Date: 08 April 2026 at 12:18pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: UserID
Posted By: ShemT
Subject: UserID
Date Posted: 05 December 2006 at 2:07pm
Anybody know what holds the userID throughout the site? is it a cookie or
session variable?

Thanks
Shem



Replies:
Posted By: Scotty32
Date Posted: 10 December 2006 at 8:06pm
though this is kinda late......

the answer is ... nothing - the UserID is taken from the database on each page (well any that include the 'includes/common.asp' file).

the forum tracks users with a cookie, which contains whats in the User_Code field of the database.

the forum then uses this to figure out who you are and grab details for example your author_id, username and group_id.

if you want to use these then use the following:

Author_ID = lngLoggedInUserID
Username = strLoggedInUsername
Group_ID = intGroupID

hope this helps


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .



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