Hi, I have a query. I am making use of this class in a framework. I keep experiencing a problem on my local development machine (running windows). The problem has never occurred after I have uploaded the site to my hosting servers (Linux).
Basically I get my user to login. The Session is started and information stored correctly for the User class. However when I try and access the Session from another class it does not exist/contain the information. This problem is intermittent. It does not always occur and I have not been able to replicate it on purpose.
Normally leaving the user logged in until the session times out clears what ever is causing the issue... but not always. Does anyone know why this may be happening? (I have tried setting the session to last for more than 24 hours so I do not think it is a time related issue)
Ultimate Session Wrapper Class
in PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
Posted
Hi, I have a query. I am making use of this class in a framework. I keep experiencing a problem on my local development machine (running windows). The problem has never occurred after I have uploaded the site to my hosting servers (Linux).
Basically I get my user to login. The Session is started and information stored correctly for the User class. However when I try and access the Session from another class it does not exist/contain the information. This problem is intermittent. It does not always occur and I have not been able to replicate it on purpose.
Normally leaving the user logged in until the session times out clears what ever is causing the issue... but not always. Does anyone know why this may be happening? (I have tried setting the session to last for more than 24 hours so I do not think it is a time related issue)