Jump to content

sessions v tmp database entry.


redarrow

Recommended Posts

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

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

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.

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.