ohdang888 Posted March 3, 2008 Share Posted March 3, 2008 whats better to do?? save a lot of info (about 10-15 things) into a session, or to use a query to get that info each time (there are about 5 pages where there would be used) Quote Link to comment https://forums.phpfreaks.com/topic/94109-sessions-or-queries/ Share on other sites More sharing options...
trq Posted March 3, 2008 Share Posted March 3, 2008 If your going to be using the data allot its probably easiest/best to simply store it in the $_SESSION[] array. Quote Link to comment https://forums.phpfreaks.com/topic/94109-sessions-or-queries/#findComment-482078 Share on other sites More sharing options...
ohdang888 Posted March 3, 2008 Author Share Posted March 3, 2008 where is info in sessions stored? on my server, or their computer? Quote Link to comment https://forums.phpfreaks.com/topic/94109-sessions-or-queries/#findComment-482079 Share on other sites More sharing options...
unsider Posted March 3, 2008 Share Posted March 3, 2008 Sessions are stored on the server. Queries are stored in a DB. Cookies are stored on the computer/browser. (Can be edited). Quote Link to comment https://forums.phpfreaks.com/topic/94109-sessions-or-queries/#findComment-482084 Share on other sites More sharing options...
able Posted March 3, 2008 Share Posted March 3, 2008 By default sessions are stored as text files on the server. Quote Link to comment https://forums.phpfreaks.com/topic/94109-sessions-or-queries/#findComment-482094 Share on other sites More sharing options...
trq Posted March 3, 2008 Share Posted March 3, 2008 where is info in sessions stored? on my server, or their computer? I answered that question for you in another thread yesterday. if your going to ask questions at least have the decency to read the replies. Quote Link to comment https://forums.phpfreaks.com/topic/94109-sessions-or-queries/#findComment-482164 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.