Jump to content

Passing session in Two different Hosting


lilmer

Recommended Posts

Hello, we got a site running in to different servers, the other one is a sub domain that will  be use as internal pages and the other one is external. As of that I need to pass session to see if a user details.

 

Is there a another secure way to pass session data to other server without storing on the database?

I found that it can be setup on php.ini

session.cookie_domain

is it safe to use? can I test it directly through my hosting without any intervention on the web site. Our site now is up and running and ha a thousand of user.

If you don't use a database, then the session data will only be stored on one server. Both servers could read the session cookie, but only one of them has the corresponding data. If you stored it in a database then both servers could access it.

 

You could also do something like a network share, but that will probably be a lot slower.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.