Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 July 22nd, 2004, 04:50 PM
Authorized User
 
Join Date: Jun 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default redirect with SSL/cookieless sessions confusion

Hi,

I have a site that uses cookieless sessions. My site consists of a main directory and a subdirectory "Members" on which I require secure channel(SSL).

I know that cookieless sessions only work with relative Urls, while I learned when programming my default login page to redirect to Members/MyCareConnections that going from http to https requires a fully qualified Url. This is what I did in my default redirect and it worked:

Dim originalUrl As String = "/Members/MyCareConnections.aspx"

Dim modifiedUrl As String = "https://www.careconnections.com" & Response.ApplyAppPathModifier(originalUrl)

Response.Redirect(modifiedUrl)

Now I'm working on a page within the Members SSL-enforced subdirectory. I figured once I was within that directory I could just use relative Urls when redirecting. This is what the view source showed for the redirect:

<BODY><ASP_SMARTNAV_RDIR url="/(4ffx3hzsdiavwf55spwq5vri)/Members/PatReg_Confirmation.aspx?id=26875501"></ASP_SMARTNAV_RDIR></BODY>

That did not work. Nothing happens on this page when the event that causes the redirect fires, except that the page goes blank (the address in the browser bar remains on the page). So I figured it must be some similar issue, and wrote this:

Dim originalUrl As String = "PatReg_Confirmation.aspx?id=" & txtNewPatRegID.Text

Dim modifiedUrl As String = "https://www.careconnections.com" & Response.ApplyAppPathModifier(originalUrl)

Response.Redirect(modifiedUrl)

When I view source, this is what I see, which looks correct, and when I copy this address and paste it into the browser it actually brings that page up:

<BODY><ASP_SMARTNAV_RDIR url="https://www.careconnections.com/(4ffx3hzsdiavwf55spwq5vri)/Members/PatReg_Confirmation.aspx?id=26875500"></ASP_SMARTNAV_RDIR></BODY>

So I have no idea why this page won't redirect at this point. Is this an IIS thing? I don't have a global.asax, and my web.config sits in the main directory with <sessionState mode="InProc" cookieless="true" timeout="8" />. Is there a problem with my web.config sitting in a non-SSL parent folder and pages in the child SSL folder trying to use it/cookieless sessions?

I would greatly appreciate any help you can offer, I'm in a bad spot right now.

Thanks,

John
 
Old July 22nd, 2004, 04:56 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Cross post. Please see here for replies:

http://p2p.wrox.com/topic.asp?TOPIC_ID=16488

Can you please not cross post? It clutters up this forum.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Computer Blue by Prince and the Revolution (Track 4 from the album: Purple Rain) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect with SSL/cookieless sessions problems jtyson ASP.NET 1.0 and 1.1 Basics 2 May 29th, 2013 07:32 PM
Cookieless & robots vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 July 9th, 2007 01:52 AM
Cookieless Session Question dparsons ASP.NET 2.0 Professional 4 April 2nd, 2007 03:47 AM
Mixing classic ASP sessions with ASP.NET sessions scorpion_king General .NET 2 August 4th, 2004 08:20 AM
redirect with SSL/cookieless sessions befuddlement jtyson ASP.NET 1.0 and 1.1 Professional 1 July 22nd, 2004 05:25 PM





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