jacko310592 Posted September 2, 2010 Share Posted September 2, 2010 hey guys, up until today i didnt think it was possible to read sessions from all active users, then i found this post: http://stackoverflow.com/questions/675913/looping-through-all-a-servers-sessions-in-php so after setting a custom session save path like the answer to the above post suggests, i logged into my site (local sever) with no problems (meaning a session will have been set)... but when i went to the dir i set for sessions to save to, the dir was completely empty :S below is a screenshot of my php.ini config for the session settings... can anyone see a possible problem with my current settings preventing sessions from being saved to my chosen dir (/home/jacko/LocalHost/sess)? (btw, like the guy from the link, i need to be able to read all set sessions to see which users are currently online at the time) thanks for reading Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 2, 2010 Share Posted September 2, 2010 Make sure you have given the folder /home/jacko/LocalHost/sess sufficient write permissions so PHP can write the session files to that directory. Quote Link to comment Share on other sites More sharing options...
jacko310592 Posted September 2, 2010 Author Share Posted September 2, 2010 it should have permission, within ubuntu i set the folder to allow read and write... is there any other way i should be setting permissions? Quote Link to comment Share on other sites More sharing options...
jacko310592 Posted September 2, 2010 Author Share Posted September 2, 2010 i seem to have it working now, i think it was just ubuntu messing up the file permissions on the folder Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.