richrock Posted May 26, 2009 Share Posted May 26, 2009 I've been spooked I guess, in that a programmer friend of mine said I can't put a lot of information into a $_SESSION array (or arrays )... Is this true? I've looked at the phpinfo for the server - nothing showing, and check out the info on php.net. Nothing seems to show a maximum size unlike $_POST data, which can be set in php.ini... Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/159721-solved-maximum-allowable-data-in-php-sessions/ Share on other sites More sharing options...
wildteen88 Posted May 26, 2009 Share Posted May 26, 2009 You can store as much data as you like within in sessions. All sessions are stored on the server. The only limits you can reach is the maximum memory a script can consume at one time, which by default is 128MB. Quote Link to comment https://forums.phpfreaks.com/topic/159721-solved-maximum-allowable-data-in-php-sessions/#findComment-842471 Share on other sites More sharing options...
richrock Posted May 27, 2009 Author Share Posted May 27, 2009 sounds good to me - thanks!!! Quote Link to comment https://forums.phpfreaks.com/topic/159721-solved-maximum-allowable-data-in-php-sessions/#findComment-842946 Share on other sites More sharing options...
aschk Posted May 27, 2009 Share Posted May 27, 2009 Although if you are reaching the size limit of 128MB i would consider asking yourself if what you're doing can't be facilitated better another way (database storage?). Quote Link to comment https://forums.phpfreaks.com/topic/159721-solved-maximum-allowable-data-in-php-sessions/#findComment-842974 Share on other sites More sharing options...
ToonMariner Posted May 27, 2009 Share Posted May 27, 2009 if you are reaching the size limit perhaps you should ask yourself where the hell is this app going all recursive on me Quote Link to comment https://forums.phpfreaks.com/topic/159721-solved-maximum-allowable-data-in-php-sessions/#findComment-842978 Share on other sites More sharing options...
richrock Posted May 29, 2009 Author Share Posted May 29, 2009 lol. It wasn't erroring or freaking out, but just wondering if there were limits. The script's all good, and I can use sessions with more confidence now. Thx guys. Quote Link to comment https://forums.phpfreaks.com/topic/159721-solved-maximum-allowable-data-in-php-sessions/#findComment-844798 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.