$_SESSIONS and storage or database
Posted: Tue Feb 18, 2003 3:48 pm
I have just started trying to get my head around sessions and have a couple of questions, one that I can’t seem to find an answer to in the manual or elsewhere and the second is asking for advice storage or repeat database connections:
1) How much information or number of variables can a session hold?
2) This question relates to using the session to store information or make repeat connections to the database to retreave the information. Say I have a MySQL database of cottages and each cottage holds different items or values like say rooms, beds, baths, garage and discription, when a search is performed various cottage information is loaded into "Web page" tables, each cottage information table has a button to open another page with say images and full information on that cottage, would it better to pass this information from the table page to the image page in the session or is it acceptable to pass “ignoring the security issues” say a password, login and cottage ID between the pages and use that information to propagate the variables on the next page? There are about 10 small variable values and a 250 letter text value.
Thanks
1) How much information or number of variables can a session hold?
2) This question relates to using the session to store information or make repeat connections to the database to retreave the information. Say I have a MySQL database of cottages and each cottage holds different items or values like say rooms, beds, baths, garage and discription, when a search is performed various cottage information is loaded into "Web page" tables, each cottage information table has a button to open another page with say images and full information on that cottage, would it better to pass this information from the table page to the image page in the session or is it acceptable to pass “ignoring the security issues” say a password, login and cottage ID between the pages and use that information to propagate the variables on the next page? There are about 10 small variable values and a 250 letter text value.
Thanks