3

I was thinking if it was possible to allow login to multiple account of the same site from same browser simultaneously .

Can this be done in php, What would be the logic involved in that case ?

I found these to related question :

How to Log Into a Web App Simultaneously with Different Account?

same website - two user accounts

But they don't answer my question. I want to know if it is possible on server side using php ?

martian
  • 33
  • 1
  • 3

3 Answers3

2

There is nothing preventing PHP from having multiple sessions from the same client. The issue is that browsers do not support receiving and sending different session cookies to a single site from the same browser profile.

2

You can have multiple session simultaneously from same browser by creating multiple profiles.

For Firefox, try Multifox extension http://br.mozdev.org/multifox/
For Chrome, try https://support.google.com/chrome/answer/2364824
IE8+ seems to have has built-in new session option

0

Most modern browsers support having two sessions open, by way of Incognito or Private browsing. Internet Explorer actually allows any number of sessions by way of the File -> New Session menu item.

When you read about "Session," that is the PHP (or any other server language) way of keeping track of which browser is logged in as which user. That is why in a default configuration, for the majority of web apps, you have to use a different browser session to get a different application login.

I say the majority, because most PHP apps simply use the PHP session to tie into a web app login scenario. GMail allows you to have multiple accounts in the same browser, but only one active at a time. So, a web app could manage its own Browser Session to Application Login map, and have it be one-to-many.

maxwellb
  • 935