Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - protecting other pages (using common.asp)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

protecting other pages (using common.asp)

 Post Reply Post Reply
Author
Rory View Drop Down
Newbie
Newbie


Joined: 15 March 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rory Quote  Post ReplyReply Direct Link To This Post Topic: protecting other pages (using common.asp)
    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.


Edited by dj air - 15 March 2005 at 11:33am
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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")
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.