Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 October 15th, 2004, 04:52 AM
Registered User
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default FormsAuthentication messing my Response.Redirect


I use FormsAuthentication. At each page I have a dropdownmenu for navigating to other pages which is embedded in a .ascx control . For this I use Response.Redirect("otherpage.aspx"). This works fine, except when the Authorisation cookie is set to never expire, or when people use some password remembering option in the browser. In this case people get redirected to the login page. How can I redirect these people to the otherpage.aspx?

Many Thanks!

Old October 15th, 2004, 07:20 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

Hmm, that is weird, because I would think it would redirect if the user's credentials weren't stored in the cookie...
Old October 15th, 2004, 10:41 AM
Registered User
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

Got the answer. The cookie stored web-address was the raw www2.blahblah.blah.bla.org address at my web-provider. I use the "fancy" registered .com name to visit the site. When cookies are set to never expire, it stores the real address, while if cookies are not set to never expire it only stores the relative address (just the page with a backslash). So I should have used the relative address at all times, instead of referring to a real address which can be different depending on the registered .com or raw webprovider's address..

Many thanks anyway!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.Redirect in c# class. manish.sharma04 BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 17 February 28th, 2012 07:01 PM
response.redirect sarah lee ASP.NET 1.0 and 1.1 Basics 1 October 27th, 2006 08:57 AM
response.redirect ava_h .NET Framework 2.0 0 October 18th, 2006 10:21 PM
response.redirect crmpicco Classic ASP Basics 3 February 9th, 2005 01:50 AM
Response.Redirect dhborchardt Classic ASP Basics 4 June 16th, 2003 05:56 AM

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