Hey guys...
I am trying to come up with a game plan for converting my projects from CodeIgniter to Laravel. The problem is I have several applications currently in use in our company, and the main pitfall is that all of my applications share the same session stored in my database to allow navigation from app to app without requiring a login every time.
I was wondering if there was a way to use CodeIgniter Sessions in Laravel? If not, what is the best solution to convert my apps? If I can get Laravel to use CI sessions, then I can start writing new apps in Laravel and go back and rewrite my CI apps at my leisure.
Recoding my apps would be a massive undertaking and would break the session persistence, forcing them to relogin depending on what framework I use, I was just wondering if there was any easier way and maybe some guidance on the issue from anyone who might've been in the same situation.
Well, the only solution I could come up with was to implement my own session handler and use that in both CodeIgniter in Laravel.
I have many apps tied to our database and I pride on the fact that they're seamless; if you have a session with one, then no login is required to access the others.
What I decided to do was to simply reimplement my system one app at a time. I wish there was some kind of Laravel plugin to interface with the CI sessions but I suppose anyone capable of doing that is planning on migrating entirely anyway XD
I know this is an old thread, however I think this case is actually pretty common so I would like to write what I could say about this topic.
To achieve synced user session between 2 web application, I think the cleanest method is use some Federated Identity protocol such as OAuth 2.0 or OpenID Connect. This approach allow for separated logics & concerns, thus achieve better encapsulation & modularity.