Print Page | Close Window

protecting other pages (using common.asp)

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


Topic: protecting other pages (using common.asp)
Posted By: Rory
Subject: protecting other pages (using common.asp)
Date Posted: 15 March 2005 at 11:11am
First time in the forum and just started using this incredible Web Wiz Forum. I am having a few challenges that I could use some advice with. I am using the forum but also have other pages I would like to be only accessable by registered users. Those pages use *frames* and I was using session variables to protect them. I have tried to include the common.asp file using *include* from the forum folder. The challenge is that when I check to see what cookies are set I get:
 The Name of the Cookie is: EFM
EFM (0) is called: LTVST EFM (LTVST) = 38426.4295023148
I changed the cookie prefix on both common files. It seem to be missing the username. Has anyone else had this problem? Also, what is the cookie named that would recall the username (so I can print it to the other pages). Thanks so much for any help or advice anyone can give.



Replies:
Posted By: dj air
Date Posted: 15 March 2005 at 1:45pm
the username is not stored within the cookie as its a security risk.

the user_code is stored within a cookie, which is then used to query the user table to get the user details.

after the include file is bought in you can show the username by adding strLoggedInUsername

with <%= %> or if asp mode " & & "

as you are using frames the common.asp file will have to added  to any file within the frames that you want to use , meaning restrict or display details.

the cookie that holds the User_code is request.cookie(strCookieName)("UID")



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