MrXHellboy Posted December 19, 2010 Share Posted December 19, 2010 Hi All, the session files stored as sess_SESSION_ID... How can i read them, i cant read them using fopen or file_get_contents, without any warnings.. Can someone help me out here ? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/222138-read-session-files/ Share on other sites More sharing options...
BlueSkyIS Posted December 19, 2010 Share Posted December 19, 2010 why do you want to read the session files, and what code are you using to try to do it? Quote Link to comment https://forums.phpfreaks.com/topic/222138-read-session-files/#findComment-1149268 Share on other sites More sharing options...
PFMaBiSmAd Posted December 19, 2010 Share Posted December 19, 2010 It is not very efficient to do a directory scan and access session data files, and it is even more inefficient to actually open and read through each of those files. There could literally be hundred of files, some expired but not yet cleaned out and some for active visitors. What overall goal are you trying to accomplish, because there is probably a better way of doing it that does not involve reading session data files. Quote Link to comment https://forums.phpfreaks.com/topic/222138-read-session-files/#findComment-1149274 Share on other sites More sharing options...
MrXHellboy Posted December 19, 2010 Author Share Posted December 19, 2010 Hi there, I have no goal at all... I was just trying to have a clear mind of all the session functions and opportunities related. thats all I thought it would may become handy with a tracker system.... Quote Link to comment https://forums.phpfreaks.com/topic/222138-read-session-files/#findComment-1149280 Share on other sites More sharing options...
BlueSkyIS Posted December 19, 2010 Share Posted December 19, 2010 using session functions usually has little or nothing to do with actually reading the session files. i don't believe i have ever opened a session file, but i use sessions all day every day. you might want to google php sessions for explanations and tutorials. Quote Link to comment https://forums.phpfreaks.com/topic/222138-read-session-files/#findComment-1149282 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.