what varianbles to use?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andrei.mita
Forum Commoner
Posts: 65
Joined: Sun May 08, 2005 4:06 am
Location: Barlad/Romania

what varianbles to use?

Post by andrei.mita »

I got my log in page all sorted out and working very well. Now, I want to make a profile page for the users. What I thought I should do is to put in $SESSION[''] all the fields of the users row from the db. And so I did. It's working very well but is it good?

Thanks,
Andrei
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

I only use session to store data that I want to use across multiple pages or keep a record of for later if I need to.
Other wise I just use variables and display them where I need to on the one page.

Keeps over head down on the server of client side with passing big session variables around
andrei.mita
Forum Commoner
Posts: 65
Joined: Sun May 08, 2005 4:06 am
Location: Barlad/Romania

Post by andrei.mita »

ohh, then i think it's ok what I'm doing because the entire row is about 3kb which I think it will not overload the server :D

i'll keep in mind what you said thou because I plan to make a larger script where I'll use images and video in the db.

thanks
Post Reply