Jump to content


Passing session variables to secure server

  • Please log in to reply
2 replies to this topic

#1 ccarletti

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 07 September 2006 - 04:13 AM

I am trying to pass session variables in a shopping cart from one page that is not secure to another that is secure but lose all values.  I guess it sees this as 2 seperate sessions when entering into a secure side.  Is there a way to pass the variables from http to https without losing them?

Any help will be appreciated.

Best wishes,

#2 shocker-z

  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 07 September 2006 - 09:53 AM

i spose u could submit/POST the session ID to the secure page and at same time insert all session valuse into a database including sessionid and then use the posted value to pbring up all the details on the secure site...

www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 HuggieBear

  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 07 September 2006 - 10:43 AM


I think that's the only way you can do it.  Unless you have your original details secured.

I always add items to the DB, pass the session ID and then retrieve from the DB once secure.

Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users