Re: Pushing Vars into $_SESSION

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Grigor wrote:

The method behind the madness here, is that I am only pulling the data once from the db throughout the whole session. This means that all the user info is available on every page they visit. I can also then identify on each page that loads if a user has signed in and a session is present. Do you think I am going about this in the wrong way? What would you suggest is a better idea???

Chris

All the user info? Wouldn't it be enough to have a link on that User?
So that you can get the information you need rather than have all stored in a Session.
Btw. what would you do if the User starts updating his Profile.
Wouldn't it be easier to just update the Data-Field of the User rather than updating session and Data-Field?

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux