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

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

new
Spirituality
Home Improvement
Vegetarian
NASCAR
Southcentral USA


dailyclick
All times in EST

Autism Spectrum Disorders: 4:00 PM

Full Schedule
g
g ASP Site
Editor Wanted
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!

RSS | Related Articles | Previous Features | Site Map


Content copyright © 2008 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.

Digg! g delicious Save to Del.icio.us

g


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

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
Driving Amount
Much more
Slightly more
Slightly less
Much less

g


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


BellaOnline Editor