CodeIgniter Forums
session strange behaviour - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: session strange behaviour (/showthread.php?tid=63783)



session strange behaviour - bestperformance - 12-09-2015

I have created the controller and added the load of the session library in the controller.
and the data was received correctly once I was alone on the server.

Once i granted access to another user to login and store his data in the session, I found strange behavior. When I try to log the userid of the user doing any action, sometimes I get logged in with for examples user1 and the other user is logged in from another location with different ip with user for example user2

When I log the data, my actions sometimes are logged as user1 and other times as user2 and his actions as well is logged as user2 and sometimes as user1 although none of us is logged out and logged in again.

Somebody advice how to resolve this issue and from where to start looking into this issue as it is fatal for any members area actions.