Welcome Guest, Not a member yet? Register   Sign In
Auth, sessions, fetching user data
#3

[eluser]Madmartigan1[/eluser]
Thanks for the reply.

I was able to achieve my goal by setting a class variable 'user' in the constructor of the Auth library. For now, the function user() just returns the value of that variable. Now, only the user id is stored in the session, and a new query on the user is run once each page load. Seems perfectly simple and acceptable to me unless I'm being dense (I have been up very very late tonight!).

Thanks again. I have ORM-phobia atm, but DataMapper looks quite good!


Messages In This Thread
Auth, sessions, fetching user data - by El Forum - 11-27-2010, 04:07 AM
Auth, sessions, fetching user data - by El Forum - 11-27-2010, 04:56 AM
Auth, sessions, fetching user data - by El Forum - 11-27-2010, 05:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB