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

remembering link that was clicked

P: n/a
On my site the homepage is accessible by all. The other pages need a password.

When a visitor clicks a link, they get redirected to the login page instead
of the page that they want to see. That part is under control.

If they provide the right password, they need to be sent to the page that
they clicked. How do I do that?

I'm using ASP and Access.
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You can use a session variable ex.session("logged"). If user have logged,
redirected them to the page you want and fill the variable with 1 / true or
something

"slim___shady" wrote:
On my site the homepage is accessible by all. The other pages need a password.

When a visitor clicks a link, they get redirected to the login page instead
of the page that they want to see. That part is under control.

If they provide the right password, they need to be sent to the page that
they clicked. How do I do that?

I'm using ASP and Access.

Jul 22 '05 #2

P: n/a
"slim___shady" <sl*******@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
On my site the homepage is accessible by all. The other pages need a
password.

When a visitor clicks a link, they get redirected to the login page
instead
of the page that they want to see. That part is under control.

If they provide the right password, they need to be sent to the page that
they clicked. How do I do that?

I'm using ASP and Access.


mypage= request.servervariables("script_name")
if mypage<> "" then
Session("RequestedPage") = myPage
end if

Then, when you want to show the page they originally requested:

response.Write ("<A HREF=" & Session("RequestedPage") & ">Continue</A>
--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.