objects stored in sessions



Hi All,

I've got something on my little mind, and please keep in mind I'm still somewhat new to PHP Oop, so please excuse my silly ass if I ask something that should be obvious.

I've got an application that I'm re-writing from PERL to PHP Oop. At the beginning of the application, at log in, a session is created for this user. What I would like to do is create a user object and store object properties in that session.

So, if I create a user object, set the properties of said user object and store that object in the user session will that object be available throughout the application from the session?

thanks,

--

Mark
-------------------------
the rule of law is good, however the rule of tyrants just plain sucks!
Real Tax Reform begins with getting rid of the IRS.
==============================================
Powered by CentOS5 (RHEL5)
.



Relevant Pages

  • Re: how to delete a file that is related to the session object
    ... i have a static object which is created each time the session start: ... this user object is reffered to in my code this way: ... if the application's user closes the window, ... session ends, the garbage collector doesn't always work at that instance. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Business Objects and Session Variables
    ... implementations of patterns here. ... A factory method is one that returns an object to ... each derived from a base user object). ... you can either pull from session or rebuild from the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Business Objects and Session Variables
    ... > returns the user object from userID (or overload, ... > session, but I am not adverse to it either. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Newbie Question: Password protect a webpage
    ... > On the gateway page, you place a javascript which asks for the password, ... login credentials serverside, and then store the user id (or better yet, ... User object) in the session: ...
    (comp.lang.java)
  • Re: Business Objects and Session Variables
    ... that a user object is generally low perf hit to fill (via database ... session, but I am not adverse to it either. ... Hitting the database to get user info when a user requests a page ... returns the user object from userID ...
    (microsoft.public.dotnet.framework.aspnet)