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
| Search | Today's Posts | Mark Forums Read
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 July 22nd, 2004, 04:51 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old July 22nd, 2004, 04:55 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
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?
 
Old May 29th, 2013, 07:32 PM
Registered User
Points: 67, Level: 1
Points: 67, Level: 1 Points: 67, Level: 1 Points: 67, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down No problem with "Cross Post"

Quote:
Originally Posted by Imar View Post
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




Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Sessions HelpWanted ASP.NET 1.0 and 1.1 Basics 2 December 7th, 2006 04:56 PM
redirect with SSL/cookieless sessions befuddlement jtyson ASP.NET 1.0 and 1.1 Professional 1 July 22nd, 2004 05:25 PM
Sessions - one user has problems kc5f Beginning PHP 7 June 8th, 2004 07:43 PM





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