1

The Project is running on CodeIgniter (v 3.1.9).

from the Login page

When two different users (A and B) try to login from two different systems at same time, both users gets the same session values.

If A log's in first(1 or 2 seconds), then the user B gets the session of A's, After a reload the correct session are restored.

This happens in the opposite way also.

So both the users gets the same dashboard the first time, which is pretty bad,

this only happenes when we try to login with 2 users at the same time.

If anybody has any pointers that would be great. Thanks in advance.

nisarg parekh
  • 413
  • 4
  • 23
bibin baby
  • 72
  • 9

1 Answers1

0

SO After Long sleepless nights i figured out what was causing the issue, and it is a funny one.

Posting this answer so that if anybody comes looking for this.

So my codeigniter project was loaded in a sub folder of a domain, and that was the issue, somehow the codeigniter sessions gets mixed up when using the subfolder, when i moved it to another domain and everything worked perfectly.

just so you know i did add the required .htaccess for this folder. @AyazShah @popeye thanks..

bibin baby
  • 72
  • 9