Jump to content

Pass login information between miltiple sites


PHPiSean

Recommended Posts

Hello

 

Here's the situation

 

I plan to have the same login information for site1.com and site2.com. I want my users to be able to login on site1.com and be logged in on site2.com when they visit it. How should i go forth in doing so?

 

From what I looked up, this is very unsafe to do. But then again, how does codecanyon do so?

 

Thanks!

 

 

One way I would go about this is saving the session cookie information in a database which server A and server B will both use. You would also need to make a Garbage Collector function which will truncate the session tables

 

Hello again and thanks for being so helpful!

 

Yes, server a and b both use the same database. Should I just create another column for that or does that need its own significant db?

 

EDIT: Meant to say table not db

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.