carry over session to SSL ?

I am caching the users shopping cart in session variables (array?).  When I direct the page to an SSL server I get all fields cleared.

I kind of understand why this is happening, because I am initiaing a new connection to a server which is reinitializing all the session variables and I am loosing any saved data.

Is there any way for me to keep that without writing it out to the database and then recalling it ?

-Jay

LVL 2
bloodAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

drittichCommented:
Pass them as form variables or querystring variables.
0
yonigoldCommented:
can u please add details about the redirection to the ssl server. please write exactly what are you doing.
thanks.
0
geteCommented:
Are you trying to connect/redirect the user to different website (other than the originating website/application)? If that's the case than you cannot use the built in Session management provided by ASP, because the Session management is only valid in one application/website.

One of the way you can pass the shopping cart information is like drittich said, use the form or querystring variables which is I think is not quite safe because you're only passing shopping cart information (not credit card info for example).

The other way is to use third party session management, which is able to do multiple website session management, usually using a centralized database server to store the session information.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

bloodAuthor Commented:
So I would have to write a routine that dumped the array (row by row) out to stepped variables, and then input those in?

I am currently switching servers.  Here is the scenario:

-www.mysite.com has cart information and customerID.

-After user authenticates with password, their customerID is stored in a session variable and then I redirect them to commerce.myisp.com:440/mywebuserid/checkout.asp

I am currently waiting for thawte to issue my certificate so that I can have secure.mysite.com.   Would that be seen as a redirection?

Gete:  What session management do you speak of?  Is it something on the ASP.DLL level or client side?

Thanks so much !
-Jay
0
geteCommented:
Before I answer, I want to correct my previous reply saying that it's NOT safe to pass the variables via form fields/querystring, I must be typing too quickly :) What I actually mean is: I think it IS quite safe to pass the information since it doesn't contain CC number etc.


>> I am currently waiting for thawte to issue my certificate so that I can have secure.mysite.com.   Would
that be seen as a redirection?

Yes, it's still a different ASP Application. That means, the built-in ASP session can't be used accross the sites (ASP applications).


>> Gete:  What session management do you speak of?  Is it something on the ASP.DLL level or client side?

It's still in the server side (of course it still utilize cookie to pass the session ids), usually in the form of component. Here is an article from 15Seconds.com about this kind of product comparison:

http://www.15seconds.com/component/pg000464.htm

Anyway, since you're not using your own server, I think it's quite difficult to install the components into the commerce server. Usually multiple server session management is used to manage session in a webfarm environment or clustered servers. Later on when you have your own commerce server, I'm suggesting you get one of the products shown in that articles to manage the session.

Regards,
.Gt
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bloodAuthor Commented:
Ok, so I am trying to dump my cart to variables... and then pull them back in when I get to the new application.

I cannot figure out how to increment the variables!

Here is my code so far:

<%
const cProductid = 0
const cProductname = 1
const cQuantity = 2
const cUnitPrice = 3
const cShipping = 4

dim arrCart
arrCart = session("mycart")
         
for i = 1 to session("cartitem")
  prodid = arrcart(cProductid,i)
  prodname = arrcart(cproductname,i)
  prodquan = arrcart(cquantity,i)
  prodprice = arrcart(cunitprice,i)
  prodship = arrcart(cshipping,i)
next          

%>

What I want to do, if this makes any sense is:

<%
const cProductid = 0
const cProductname = 1
const cQuantity = 2
const cUnitPrice = 3
const cShipping = 4

dim arrCart
arrCart = session("mycart")
         
dim j
j = 0
for i = 1 to session("cartitem")
  j = j + 1
  prodid(j) = arrcart(cProductid,i)
  prodname(j) = arrcart(cproductname,i)
  prodquan(j) = arrcart(cquantity,i)
  prodprice(j) = arrcart(cunitprice,i)
  prodship(j) = arrcart(cshipping,i)
next          
%>


That way I can dump out the whole cart into the same named variables except the number at the end it stepped up one for each row in the array.

Is this possible ?

Thanks,
Jay
0
bloodAuthor Commented:
Alright... well I got it working but I decided to do it using the database.

I created a temporary table, with fields representing the array variables.

In the code, I used a seed to grab a random number, then use that random number to identify the entries in the temp table.  

Then I dumped each array row into the table, and response.redirected to the secure site passing only the random number as the variable.

I then pulled the data out of the table and deleted it after running each entry through the shopping cart add routine.  

Basically I just emptied the cart and re-filled it when I got to the other side.  That way, I didn't have to make a billion code changes on my processing page (which was pulling from the array and session variables).

Thanks for all of your help!   I might need it again if this solution proves to be too much overhead.

-Jay
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
E-Commerce

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.