Sessions and objects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • daniel

    Sessions and objects

    Hi,

    This may be a dumb question, but can an object be loaded and "persist"
    for the duration of a user session?

    Cheers,
    Daniel

  • Tom Thackrey

    #2
    Re: Sessions and objects


    On 26-Oct-2003, daniel <daniel@dlpage. com> wrote:
    [color=blue]
    > This may be a dumb question, but can an object be loaded and "persist"
    > for the duration of a user session?[/color]

    Yes, assign it to a session variable

    $_SESSION['myobject'] = new objectclass();

    --
    Tom Thackrey

    tom (at) creative (dash) light (dot) com
    do NOT send email to jamesbutler@wil lglen.net (it's reserved for spammers)

    Comment

    Working...