Re: Pushing Vars into $_SESSION
| From: | Barry | Date: | Thu, 20 Apr 2006 07:20:42 +0000 |
| Subject: | Re: Pushing Vars into $_SESSION | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234330@lists.php.net to get a copy of this message | ||
Chris Grigor wrote:
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)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