By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,759 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,759 IT Pros & Developers. It's quick & easy.

Invoking Web Page

P: n/a
I am writing a .Net Web application to reset an AD User's password. The user
will hit the first web page, answer a few questions and if their answers are
correct then they will be directed to a web page that will ask them what
password they would like to have their ID set to. On this second page I
would like some VB.Net code to check to see that the first page invoked the
second page. I don't want someone to be able to directly type the 2nd page's
web address in IE and be able to execute the page.

Any help would be great.
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In your PageLoad(), use HttpRequest.UrlReferrer (that is,
Page.Request.UrlReferrer) to check the the referring page was the URL of
your 1st page.

However, I'm not too sure how secure this would be (i.e. it may be possible
to spoof the request).

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
I am writing a .Net Web application to reset an AD User's password. The
user
will hit the first web page, answer a few questions and if their answers
are
correct then they will be directed to a web page that will ask them what
password they would like to have their ID set to. On this second page I
would like some VB.Net code to check to see that the first page invoked
the
second page. I don't want someone to be able to directly type the 2nd
page's
web address in IE and be able to execute the page.

Any help would be great.

Nov 22 '05 #2

P: n/a
Thanks that will get me started. Do you know if a secure way to make sure
that my first web page is the only one that can execute my second web page?

"Brendan Green" wrote:
In your PageLoad(), use HttpRequest.UrlReferrer (that is,
Page.Request.UrlReferrer) to check the the referring page was the URL of
your 1st page.

However, I'm not too sure how secure this would be (i.e. it may be possible
to spoof the request).

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
I am writing a .Net Web application to reset an AD User's password. The
user
will hit the first web page, answer a few questions and if their answers
are
correct then they will be directed to a web page that will ask them what
password they would like to have their ID set to. On this second page I
would like some VB.Net code to check to see that the first page invoked
the
second page. I don't want someone to be able to directly type the 2nd
page's
web address in IE and be able to execute the page.

Any help would be great.


Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.