Yii Framework Forum: Multiple user login session solutions - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Multiple user login session solutions user login multiple session Rate Topic: -----

#1 User is offline   K78 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 11-May 15

Posted 12 June 2018 - 03:57 AM

Hi guys.

i'm searching for a solution to handle user multi login. To my knowledge default Yii2 functionality is able to handle only one session at a time, overwriting previous session with new on every login. My goal is to be able to log in with same user independently from different devices to same application. For example from pc and mobile device at the same time, keeping both login sessions.

Is there any solution to handle this problem? What has been your approach and experience?


Thanks in advance!
Best regards,
Kristo
0

#2 User is offline   Gustavo Andrade 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 208
  • Joined: 16-August 11
  • Location:Brazil - MG

Posted 12 June 2018 - 07:10 AM

Hello,
I believe that by default, there is no such restriction in Yii, you can authenticate with the same login in multiple browsers, pc and mobile at the same time.

In my applications it works like this.

To avoid conflict between multiple applications, you can use the parameter
session => [name]

-------------------------------------
https://github.com/gugoan
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users