#Login Session problem

15 messages · Page 1 of 1 (latest)

vapid lava
#

hi. in our website, when i logged in as User A in a browser (chrome), then i open different browser(edge) and logged in as User B, the user A loses its session data.

static marsh
#

This doesn't sound right. I think something else is happening.

vapid lava
#

what do you think is the problem?

#

its an existing website and i didnt made it so i dont have an idea how to debug/reconfigure out website.

static marsh
#

I have no idea. This is not normal behavior. You are going to have to do more debugging. In my experience, when there are very unexpected things happening - it's often something other than I think.

#

For example, look into the middleware that checks if the user is authenticated and check if that code is working correctly.

vapid lava
#

alright

civic prawn
#

Hi @vapid lava
Need to test more.
@static marsh is right.

cedar rock
#

@vapid lava What session driver are you using? Logging in to another account on another browser doesn’t kill sessions for an entirely different user in another browser. Otherwise only one person would be able to use the site at any one time.

vapid lava
# cedar rock <@803591801084051496> What session driver are you using? Logging in to another a...

what happen is when our existing user try to fill up some forms and when they submit, the result of filled up form becomes different. ex: the existing user filled up forms like first name = myfirstname, lastname = mylastname then after submitting the forms, it shows different firstname and lastname.

and then i tried to debug, by logging in 2 users in different browser. what happens is after i logged in as user1 then i open different browser and logged in as user2, when i refresh my user1, it will become user2. its like the session of user1 is loss.

frank panther
#

@vapid lava in order to receive any help, please share some code related to this

cedar rock
vapid lava
#

honestly i dont have any idea. im trying to find what the previous developer did in our website. ill be right back once i found something.

cedar rock