redarrow Posted December 8, 2008 Share Posted December 8, 2008 advance thank you. I have been learning php session's,Where the brain can not take no more. what i want to no is it best using sessions for a php basket or a temporary mysql database. As what i understand now, Is both the mysql tmp database and session's only last while the current page/database is being used. both off them are as powerful as each over and can be used to create a powerful basket. what way would you say is best, database tmd or php sessions and why. Thank you. Link to comment https://forums.phpfreaks.com/topic/136046-sessions-v-tmp-database-entry/ Share on other sites More sharing options...
Yesideez Posted December 8, 2008 Share Posted December 8, 2008 I've never heard about temporary MySQL tables before and just read up on them here: http://www.tutorialspoint.com/mysql/mysql-temporary-tables.htm Seems they're great for storing loads of data during the life span of a user's session but that's about it. Depends on how much data you're playing with that decides which is best. If you're handling a serious amount of data then session variables wouldn't be much good because you'd need a LOT of them which is where one single temporary table could come in handy. EDIT: typo Link to comment https://forums.phpfreaks.com/topic/136046-sessions-v-tmp-database-entry/#findComment-709332 Share on other sites More sharing options...
ok Posted December 8, 2008 Share Posted December 8, 2008 redarrow that is a very basic question what's wrong with you? You have 6++ posts already. ? Link to comment https://forums.phpfreaks.com/topic/136046-sessions-v-tmp-database-entry/#findComment-709333 Share on other sites More sharing options...
Yesideez Posted December 8, 2008 Share Posted December 8, 2008 A high post count doesn't mean an expert in everything! Link to comment https://forums.phpfreaks.com/topic/136046-sessions-v-tmp-database-entry/#findComment-709336 Share on other sites More sharing options...
redarrow Posted December 8, 2008 Author Share Posted December 8, 2008 Thank you yesideez, I dont no what it all about, But it seems because off the number of post's from one user to another, your expected to no ever think, To me it all about taking my time and understanding what im doing and do it to my best abiltys, im not in the race to no every think, I have always crawled in learning php. I dont think there is such thing as knowing everthink becouse off a high post rate. I love programming with php, And i ask what not in my books, or not able to find a solution to. But also i ask quistions when i see some think different from what i am doing. Link to comment https://forums.phpfreaks.com/topic/136046-sessions-v-tmp-database-entry/#findComment-709342 Share on other sites More sharing options...
Yesideez Posted December 8, 2008 Share Posted December 8, 2008 Nicely said. There are areas I would consider myself a bit of an expert and a large part of that is because I can use previous programming languages & experience into good use. Programming assembler meant I had to really plan ahead otherwise a mess was definitely on the cards and debugging assembler is a pig at the best of times. There are also more areas I'm a complete novice because I've never had to learn anything about them. Why try and learn everything only to end up using a small part of that knowledge? That would be wasting soooo much time. Just learn what you need and become comfortable with it. Link to comment https://forums.phpfreaks.com/topic/136046-sessions-v-tmp-database-entry/#findComment-709345 Share on other sites More sharing options...
Mchl Posted December 8, 2008 Share Posted December 8, 2008 There is also a possibility to rewrite session handlers, so that session data are in fact stored into database. Link to comment https://forums.phpfreaks.com/topic/136046-sessions-v-tmp-database-entry/#findComment-709348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.