logo
g Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
Creativity
Family Travel
Southwest USA
Irish Culture
Home Finance
Comedy Movies
Romance Novels


dailyclick
All times in EST

Full Schedule
g
g ASP Site

BellaOnline's ASP Editor

g

Referring URL with HTTP_REFERRER

Guest Author - Lisa Shea

When you are coding ASP pages, you often want to know where the user came from. Using HTTP_REFERRER lets you code your pages based on what path the user followed.

Simply put, add this code to your ASP page -

RefURL = Request.ServerVariables("HTTP_REFERRER")

Now you have the full value of the previous URL in the RefURL variable. Users can of course block this with their browser settings if they want to, but not all users are quite that paranoid about their security settings.

There are many reasons that knowing the referring page can be useful.

* You can make sure that a thank you page thanks the person based on what product they bought.

* You can ensure that a paypal return page only activates fully for someone that really DID just come from the PayPal website.

* If someone tries to 'leap' to a end-stage page directly, you an always response.redirect the user back to the starting point.

Make sure you do account for users that have blocked this feature, so they at least see a page explaining that they need to change their security settings.
This site needs an editor - click to learn more!

Add Referring+URL+with+HTTP%5FREFERRER to Twitter Add Referring+URL+with+HTTP%5FREFERRER to Facebook Add Referring+URL+with+HTTP%5FREFERRER to MySpace Add Referring+URL+with+HTTP%5FREFERRER to Del.icio.us Digg Referring+URL+with+HTTP%5FREFERRER Add Referring+URL+with+HTTP%5FREFERRER to Yahoo My Web Add Referring+URL+with+HTTP%5FREFERRER to Google Bookmarks Add Referring+URL+with+HTTP%5FREFERRER to Stumbleupon Add Referring+URL+with+HTTP%5FREFERRER to Reddit




RSS | Related Articles | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


For FREE email updates, subscribe to the ASP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


Content copyright © 2014 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.

g


g features
Best uses for RSS

RSS and its future.

Force Download Dialog box with ASP

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor