PDA

View Full Version : ssl and session variables


percepts
01-19-2007, 06:27 PM
hi,

I'm trying to pass session variables to an SSL page which is under a different domain with a shared ssl cert. Can this be done and if so, how? If not then how do you go about passing data to a secure page?

currently my session variables don't appear to be available to my ssl page.

thanks

devinemke
01-19-2007, 06:38 PM
are the non-secure and secure parts of your site on the same physical server? if so then the session file will still reside on the server when you switch between HTPP and HTTPS but you must propogate the session ID via the URL. if they are different servers then i suggest you serialize() the session array, stick into a temp datanase table that both servers can access, then unserialize() it on the other end.

percepts
01-19-2007, 07:16 PM
sorted. you're a star.

thanks