How to share session variables over different servers

J

John Sheppard

Hello,

I was wondering if anyone knew how to send session variables between two
different servers...
My web host gives me two servers, one normal server and one that has SSL on
it. When my web page goes to the SSL server I need to read the session
variables from the original normal server.

Does anyone know how to go about doing this? The obvious way would be to
send a variable with the url and get it with the queryString but I dont want
to do that as the customer can see and change things I don't want them to.

Any advice would be excellent help
Thank you for your time reading my message.
John
 
A

Adrienne Boswell

Hello,

I was wondering if anyone knew how to send session variables between
two different servers...
My web host gives me two servers, one normal server and one that has
SSL on it. When my web page goes to the SSL server I need to read the
session variables from the original normal server.

Does anyone know how to go about doing this? The obvious way would be
to send a variable with the url and get it with the queryString but I
dont want to do that as the customer can see and change things I don't
want them to.

Any advice would be excellent help
Thank you for your time reading my message.

Is this all on the same box? IIRC, you should be able to do this. HTTPS
is a protocal, do it should not make any difference.
 
J

John Sheppard

Adrienne Boswell said:
Is this all on the same box? IIRC, you should be able to do this. HTTPS
is a protocal, do it should not make any difference.
--

It may be on the same box, I'm not sure, its not internally hosted, the web
hosting company is quiet large so im guessing they have lots of computers. I
have tried sharing them and it has not worked before. I will ask the web
hosting guys.

Thank you
 
M

Mark Schupp

You'll need to keep your session data in a database and pass an identifier
back and forth either as a cookie (set 2, one for each site), as a form
element, or as a query-string parameter. There is an example here:
http://www.aspfaq.com/cart/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,431
Latest member
ElyseG3173

Latest Threads

Top