If the previous page is not part of your application and if they are not
passing data to you (via a post or querystring), then there is no way to get
information about what was in that page. This is the nature of HTTP.
-Scott
> The previous page comes from a 3rd party page (on a different server,
> different app. from mine). I have no control over that page whatsoever.
[quoted text clipped - 25 lines]
>> >
>> > Thanks
tucson - 11 Mar 2008 23:08 GMT
I have control over the querystring, that's the javascript I used below to
pass the document title.
<a
href="javascript:location.href=test.aspx?t='+escape(encodeURIComponent(document.title))">Go to next page</a>
The problem is I need both the document title and the http_referer but I
don't want to pass both through a querystring. I want one of them to be
server-side, if it exists. Using the javascript above,
Request.ServerVariables returns nothing.
If I just use <a href="test.aspx">Go to next page</a>, I can get the HTTP
REFERER but can't get the document.title.
I'm trying to avoid somebody just pasting the URL and getting to the page.
I did a workaround by redirecting them. So, they pass the document.title and
document.url through a querystring (encoded). The landing page captures the
info into a session and then redirects it to another page without the
querystring displayed.
But if somebody looks at the intermediate page URL and pastes some
document.title and document.url that match the requirement, it will still
redirect them to the final page.
It sounds like it's not possible to have both.
Thanks
> If the previous page is not part of your application and if they are not
> passing data to you (via a post or querystring), then there is no way to get
[quoted text clipped - 31 lines]
> >> >
> >> > Thanks