Page 1 of 1

what varianbles to use?

Posted: Wed May 11, 2005 5:05 am
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

Posted: Wed May 11, 2005 6:12 am
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

Posted: Wed May 11, 2005 11:52 am
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