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 Link to comment https://forums.phpfreaks.com/topic/212391-finding-set-session-files/ 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. Link to comment https://forums.phpfreaks.com/topic/212391-finding-set-session-files/#findComment-1106624 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? Link to comment https://forums.phpfreaks.com/topic/212391-finding-set-session-files/#findComment-1106637 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 Link to comment https://forums.phpfreaks.com/topic/212391-finding-set-session-files/#findComment-1106646 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.