Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSL on cart changes Session.ID...Help!!!

Status
Not open for further replies.

ombina

Programmer
Jun 18, 2002
62
US
Hello,

How do I prevent redirect page from changing SessionID value? My cart is SessionID dependent.

Thanks,

Ricky

Thanks,

Ricky
 
I'm not sure, but as a workaround, you could redirect w/ the sessionid in the querystring. I.e. Response.Redirect(" Session.SessionID)

And then on the pages using the session id value, do something like this.

If LCase(Request.ServerVariables("HTTPS")) = "off" Then
vSession = Session.SessionID
Else
vSession = Request.QueryString("sessionid")
End If

Then when you do your logic, refer to vSession instead of Session.SessionID
 
Thanks baddos,

One more question, where can I find out more of how to use SSL properly. Meaning, I am building a shopping and what should be sent to SSL, only pages like Checkout page, Member Info, etc?

Right now my problem is that I have a share SSL and when I redirect a page from non to a secure page, it gives me a different session id. Do yo think I need a dedicated cert. to make it stay with same session id?


Thanks,

Ricky
 
You definately need a dedicated cert, since the domain name and the name of the ssl key won't match. I would try just to ssl the user entry pages since ssl is a lot slower than regular http.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top