Jump to content

Archived

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

lilmer

Passing session in Two different Hosting

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

×
×
  • 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.