|
Posted by djcredo on 10/10/06 20:07
Hi all,
Suppose I have a "User" object intialized with user details I've
obtained from a database. When the user navigates to another section of
the site, I want that object to be available on that page.
Which is the best way to pass that object?
a) Through the Session variable
b) By keeping the variable in a seperate file, and include_once() that
file on every page
c) Some form of serialization
d) None of the above lol
Thanks, I'm finding it tough getting to grips with OO PHP in a web
environment.
Matt
Navigation:
[Reply to this message]
|