Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Circumvent http_referrer not being available
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Peter Huckle
Starting Member

6 Posts

Posted - 17 July 2002 :  10:42:04  Show Profile
Lack of these causes a variety of problems from first registration onwards. The problem is caused by Firewall's privacy settings which some users won't want to turn off. This code solves the problem:

in config.asp add these lines:
session("referer") = session("thispage")
session("thispage") = Request.ServerVariables("path_info")

and replace all occurences of
Request.ServerVariables("HTTP_REFERER")
with
session("referer")

and all will be well



HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 17 July 2002 :  11:55:02  Show Profile  Visit HuwR's Homepage
except that Request.ServerVariables("path_info")
is not at all the same as Request.ServerVariables("HTTP_REFERER") they are two entirely different things


Go to Top of Page

Peter Huckle
Starting Member

6 Posts

Posted - 18 July 2002 :  04:15:26  Show Profile
quote:

except that Request.ServerVariables("path_info")
is not at all the same as Request.ServerVariables("HTTP_REFERER") they are two entirely different things


Ageed - Request.ServerVariables("path_info") is relative to the root and Request.ServerVariables("HTTP_REFERER") is an absolute reference - but the desired result is achieved. I don't think it is reasonable to expect users to turn off privacy control - at least my customers wouldn't do it if I asked them to.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 18 July 2002 :  04:33:48  Show Profile  Visit HuwR's Homepage
quote:


Ageed - Request.ServerVariables("path_info") is relative to the root and Request.ServerVariables("HTTP_REFERER") is an absolute reference - but the desired result is achieved. I don't think it is reasonable to expect users to turn off privacy control - at least my customers wouldn't do it if I asked them to.





it is not as simple as that Request.ServerVariables("path_info") tells you the path of the file being LOADED Request.ServerVariables("HTTP_REFERER") tells you which page they came from, two entirely different things and nothing to do with absolute or relative values

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 18 July 2002 :  19:32:52  Show Profile  Visit Gremlin's Homepage
HTTP_REFERER also gives you the complete QueryString information from the Refering URL which can be handy.

www.daoc-halo.com

Edited by - Gremlin on 18 July 2002 19:33:37
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07