473,480 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Emulating referrers?

I'm working on an application that does a load of processing on
Session_Start if a new session is started having come from a particular
referrer. To determine this I use Request.UrlReferrer.

How can I debug this code on my local machine? Is there a way to emulate a
new session being started via a redirect from a referrers URL? Possibly by
having another local app pass something in the HTTP headers to my main app?

Thanks

Ben
Dec 14 '05 #1
1 1196
How about adding a QueryString to the URL to the page you want to debug. The
page could interpret the QueryString in the same way as if it was coming
from the specified Referer.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.

"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message
news:el**************@TK2MSFTNGP14.phx.gbl...
I'm working on an application that does a load of processing on
Session_Start if a new session is started having come from a particular
referrer. To determine this I use Request.UrlReferrer.

How can I debug this code on my local machine? Is there a way to emulate a
new session being started via a redirect from a referrers URL? Possibly by
having another local app pass something in the HTTP headers to my main
app?

Thanks

Ben

Dec 14 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5039
by: Jason Brown | last post by:
I've been looking for a script that will create a real-time list of 'top referrers', similar to the links to sites you see on the left of the page at http://www.linkswarm.com. They also have a page...
0
1247
by: Kamilche | last post by:
""" Emulating Python inheritance manually. By loading it from disk at run time, you can create new custom types without programmer intervention, and reload them on demand, without breaking...
28
5529
by: Anthony Williams | last post by:
Good morning, I'm currently designing a site, using CSS, and wish to create a variable width two-column layout, with header and footer, and one fixed-width column on the left. Previously, I...
10
3701
by: Cezar | last post by:
Hello. How can simple emulating in IE this class ? ..example:hover{ border: 1px solid #696969; } Greets, Cezar.
2
2587
by: Bart | last post by:
Hi there, Since you've all told me that frames ar evil, I'm planning to disguard frames in favour of CSS "pseudo-frames" for my personal website. While trying to "emulate frames" (that is I...
5
2229
by: Stephan Schaem | last post by:
How does one write an unmanaged function that perform this functionality? In short I want to turn off/on visual style in my app... Thanks, Stephan PS: two people have been looking for...
0
276
by: Ben Fidge | last post by:
I'm working on an application that does a load of processing on Session_Start if a new session is started having come from a particular referrer. To determine this I use Request.UrlReferrer. How...
4
1367
by: Ben Fidge | last post by:
I'm working on an application that does a load of processing on Session_Start if a new session is started having come from a particular referrer. To determine this I use Request.UrlReferrer. How...
3
1417
by: raghu | last post by:
Hi All, The sys.getrefcount() is very useful to get the number of references on a particular object. Is there any companion function to get "who" the referrers are ? for e.g. global x
0
7049
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7052
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7092
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5348
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3000
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2989
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
188
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.