catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 18-06-2008, 11:48 AM   #1 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 10
ASP.NET Session management on SSL

I have been successfully using a shared SSL certificate for my customer scotlandart.com to sell paintings online now for a number of years.

The site allows users to add multiple paintings to a basket, enter their personal details and then they are redirected to the secure server to provide their credit card details.

However as we pass from HTTP to HTTPS secure I lose the Session. I believe this is because I need a different ASP.NET application on the HTTPS side.

I have got round this by storing the basket information in an SQL Server database using a GUID and then reloading the basket as I pass to the HTTPS side.

My customer now wants to add a lot of new features to the site which will dramatically complicate it. So, this approach will no longer be appropriate.

What I want to know is if there is anyway to pass from HTTP to HTTPS without losing the current Session.

As I say, at the moment we have a shared certificate so when I go to HTTPS the URL becomes:-
https://grape.sslsecuredsite.com/scotlandart-com/

If we purchased a dedicated SSL certificate from Catalyst would that mean that the Session would be retained ? Would it mean that I could maintain my HTTP and HTTPS pages within the same ASP.NET application ? ie. only one bin directory rather than two ?

Thanks in advance for any help or advice.
GalaxyTech is offline   Reply With Quote
Old 18-06-2008, 02:32 PM   #2 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Hi,

Far as I am aware there isnt a way, as they are two seperate IIS sites and applications, so a new session would be setup.

If you had a dedicated certificate everything stays in the same IIS site and app pool, just the url would change to secure the connection.
paulredpath is offline   Reply With Quote
Old 19-06-2008, 10:30 AM   #3 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 10
Thanks for getting back to me on this Paul.

So are you saying that if we purchase a dedicated SSL certificate then as we then are maintaining a single application rather than two separate ones then the session will remain in place across the HTTP/HTTPS divide ?
GalaxyTech is offline   Reply With Quote
Old 19-06-2008, 10:35 AM   #4 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
John,

Yep, it would all run under the same site/app pool, not separate sites in IIS. To be honest I have never tested if a session is maintained, I would assume it is, plus you could pass the session ID in a var etc.
paulredpath is offline   Reply With Quote
Old 19-06-2008, 10:52 AM   #5 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 10
Thanks Paul.

I'll get working on my customer to get him to pay for the dedicated certificate.
GalaxyTech is offline   Reply With Quote
Old 19-06-2008, 01:25 PM   #6 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
No problem
paulredpath is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:41 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.