Help with HTTP.REFERER or something like it

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Help with HTTP.REFERER or something like it

    I have a main web site and many sub web sites under the main web site. You
    don't have to be logged in to access the main web site but you do have to be
    logged in to access the features of the sub webs. The puprose of the main site
    is to help users navigate to the sub webs features. Like each sub web has its
    own guestbook. Users get to each guestbook from the main web site. I use
    Application.cfm to maintain state and login.cfm and login2.cfm to log users in
    for the sub web sites and these files reside in the main web site directory.
    When a user wants to go to the guestbook in subweb1 they click on a link to
    subweb1/guestbook.cfm. If there not logged in, Application.cfm runs login.cfm
    and login2.cfm. When login2.cfm is done it does not know where to go. Link to
    subweb1/guestbook.cfm got losted while Application.cfm. login.cfm and
    login2.cfm were running. I have run a test and watched cgi.http_referer and it
    is blank while Application.cfm runs login.cfm and login2.cfm. How can I
    capture the link subweb1/guestbook.cfm before Application.cfm runs login.cfm
    and login2.cfm run. Then I could tell login2.cfm to jump to
    subweb1/guestbook.cfm with cflocation.

    I have thought about setting a session variable with the link but would have
    to do this in about a million different places. Would work but would be a
    programming nightmare. Does anyone have any ideas?

    ohioguy_tim Guest

  2. Similar Questions and Discussions

    1. flash and cgi.referer
      I'm trying to create a flash anti-leech method, whereby my flash movie calls a ..cfm module that compares the cgi.host and cgi.referer variables. ...
    2. url referer
      Hi, Is there anyway you can use coldfusion to get the full url of a webpage? #cgi.HTTP_REFERER# works but only if a link is actually clicked...
    3. Ma Referer length
      All, I have a question about the Max Referer length. By default this is 256 I am not fully sure I understand this property. It this a header that...
    4. referer problem
      xdblade@zworg.com (Xeon) wrote: There is no way to reliably determine that, and even browsers which supply that information may be set to prevent...
    5. How to Spoof Referer URL
      you mean like? (this is some old beta1 code i wrote years ago, don't know if all the classes are still named appropriately, as I haven't used it...
  3. #2

    Default Re: Help with HTTP.REFERER or something like it

    The best way would be to send the return information along with the original
    URL or inside a form.

    I wouldn't rely on referrer, it's not standard, and is blocked by some
    antispam/antispyware/security programs (Nortons Internet Security comes to
    mind).

    "ohioguy_tim" <webforumsuser@macromedia.com> wrote in message
    news:d9h98v$sok$1@forums.macromedia.com...
    >I have a main web site and many sub web sites under the main web site. You
    > don't have to be logged in to access the main web site but you do have to
    > be
    > logged in to access the features of the sub webs. The puprose of the main
    > site
    > is to help users navigate to the sub webs features. Like each sub web has
    > its
    > own guestbook. Users get to each guestbook from the main web site. I use
    > Application.cfm to maintain state and login.cfm and login2.cfm to log
    > users in
    > for the sub web sites and these files reside in the main web site
    > directory.
    > When a user wants to go to the guestbook in subweb1 they click on a link
    > to
    > subweb1/guestbook.cfm. If there not logged in, Application.cfm runs
    > login.cfm
    > and login2.cfm. When login2.cfm is done it does not know where to go. Link
    > to
    > subweb1/guestbook.cfm got losted while Application.cfm. login.cfm and
    > login2.cfm were running. I have run a test and watched cgi.http_referer
    > and it
    > is blank while Application.cfm runs login.cfm and login2.cfm. How can I
    > capture the link subweb1/guestbook.cfm before Application.cfm runs
    > login.cfm
    > and login2.cfm run. Then I could tell login2.cfm to jump to
    > subweb1/guestbook.cfm with cflocation.
    >
    > I have thought about setting a session variable with the link but would
    > have
    > to do this in about a million different places. Would work but would be a
    > programming nightmare. Does anyone have any ideas?
    >

    Greg M Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139