p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   redirect with SSL/cookieless sessions problems (http://p2p.wrox.com/showthread.php?t=15815)

jtyson July 22nd, 2004 04:51 PM

redirect with SSL/cookieless sessions problems
 
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

Imar July 22nd, 2004 04:55 PM

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?

test May 29th, 2013 07:32 PM

No problem with "Cross Post"
 
Quote:

Originally Posted by Imar (Post 109644)
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.
Where is the answer for this "Cross Post"?

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me. (Because you are stupid)
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?

asdfasdfasdfasdfasdf


All times are GMT -4. The time now is 05:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.