Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2003, 06:58 AM
Authorized User
 
Join Date: Sep 2003
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default Problem In Saving Previous Url

Hello everybody, i have different pages in my web sites. Unauthorizes Access is not allowed to any page. If somebody enters that page without signing in, that page redirect user to the Logon.asp.
Now the problem is that how I can i get the URL that from where user came so that after signing in,user can be redirected to that page.
Any help is appreciated.
Bye

Zaeem Sherazi
__________________
Zaeem Sherazi
 
Old November 12th, 2003, 07:25 AM
Authorized User
 
Join Date: Jul 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use Request.ServerVariables("HTTP_REFERRER"). This returns the page from which the redirection occured.
Try finding more info in Google

Kostas Lagos

 
Old November 16th, 2003, 12:08 PM
Authorized User
 
Join Date: Nov 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How about passing a login value in a queryString
form action="CheckLogin.asp?login=true" method="post"


and then on the second page retrieve the value

If not Request.QueryString("login") = true then
  Response.Redirect("index.asp")
End If






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with saving a file nelly78 .NET Framework 2.0 3 October 24th, 2008 01:09 AM
problem in saving unicode using ajax kumiko Ajax 1 July 23rd, 2008 02:31 AM
Saving Date problem suhabassam JSP Basics 0 September 25th, 2005 01:50 AM
Trouble after saving to previous version chimp Access VBA 0 September 23rd, 2004 04:36 AM
Problem saving Recordset (adPersistXML) Thodoris SQL Server 2000 2 May 12th, 2004 06:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.