CodeIgniter Forums
Session not stable for Mulptiple App only once - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18)
+--- Thread: Session not stable for Mulptiple App only once (/showthread.php?tid=1347)



Session not stable for Mulptiple App only once - pollux1er - 03-02-2015

I met this problem after I built an app with 2 codeigniter apps. So I wanted to make sure it was not an error of mine.
I experimented it on my localhost with 4 codeigniter apps in the same folder.
I have made an new installation of CI 2.2.1. And I have set 4 differents folders for applications :
  • home
  • pa
  • bl
  • acc
And I have set the same encryption key in config files for all folders, I am not using database for sessions.
The test I did was to make sure I will share the same session_id for all the 4 apps.
Then it comes out from my test that, the session_id is different the second time I navigate and remains the same, even if i switch from an application to another one.
But the problem is that, the first time I get into the home application, it displays a session_id which will change the second time when I will refresh the page or change page or application.
How to face this issue ?