Hi
I am building a website that has a PHP frontend (with login etc) and a backend, which are 2 compeltely separate applications. They just share the same database. Both backend and frontend reside on the same server. I use OOP & keep a bunch of information in session variables ($_SESSION)- instance of a model class, current status etc. My problem is that if I go to backend, it creates a session, initiates all my classes, set model class in the session.......Looks great. But if I go to frontend right after that, instead of creating a NEW session, the stupid thing assumes that there's already session in place and tries to use it! And of course, Model class for backend is completely different from Model class for frontend so it dies on me when it tries to execute functions that don't exist in this class... How do I fix it?? How do I tell the code to create a new session instead of using the one that doesn't belong to this app??
I can only wonder what happens when 2 users connect to the server at the same time... Does it mix up the sessions for them too??