Print Page | Close Window

Session / Global Variables - determine if loggedin

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=30237
Printed Date: 31 March 2026 at 4:32pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Session / Global Variables - determine if loggedin
Posted By: GhOs+
Subject: Session / Global Variables - determine if loggedin
Date Posted: 21 March 2012 at 5:49pm

I was wondering if someone can point out the best way to determine if a user is logged in to the forum on pages outside of the forum. For example, i want to only display some content and offer downloads if they are already logged in.

I'm sure someone already did something like this, but I searched for 'session variables' and cannot find anything posted here. Any help is tremendously appreciated!!!
 
Naturally, I am hoping it will be something as simple as one or two "includes" I need to drop in the ASP file outside of the forum app, but If I have to do extra coding that's fine, I would really like some direction.
 
Thanks!



Replies:
Posted By: Scotty32
Date Posted: 22 March 2012 at 1:17pm

I have a tutorial on http://www.s2h.co.uk/wwf/tips/intergration/member-only-pages.asp" rel="nofollow - Member-Only Pages .

Just include the "common.asp" file into your page, and then use the
intLoggedInUserID <> 2

to determin if they are logged in.

If it equals 2 then they are a guest, anything else is a logged in user. Also 1 is the default Admin account.


-------------
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 .


Posted By: GhOs+
Date Posted: 23 March 2012 at 11:00am
perfect, thanks!!!



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