maintaining session/context

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

    maintaining session/context

    hi!

    I am developing an application where the user will progressively create a
    template file, each time progressively adding more information
    i have explored echoing form data back each time using hidden fields and i
    cant user a db.
    What approach would you suggest? i suppose i could use cookies but then i
    will have a large number of name-value pairs. With files, comes the
    expense if disk I/O.
    Also if i use files, is there a way to write an object to a file, i.e,
    serialize an object and read/write to/from a file.

    thanks
    --
    Ajay Brar,





    ----------------------------------------------------------------
    This message was sent using IMP, the Internet Messaging Program.

  • Tim Daneliuk

    #2
    Re: maintaining session/context

    Ajay wrote:
    [color=blue]
    > hi!
    >
    > I am developing an application where the user will progressively create a
    > template file, each time progressively adding more information
    > i have explored echoing form data back each time using hidden fields and i
    > cant user a db.
    > What approach would you suggest? i suppose i could use cookies but then i
    > will have a large number of name-value pairs. With files, comes the
    > expense if disk I/O.
    > Also if i use files, is there a way to write an object to a file, i.e,
    > serialize an object and read/write to/from a file.
    >
    > thanks
    > --
    > Ajay Brar,
    >[/color]

    Without more detail, its hard to say, but off the top of my head I'd
    suggest keeping the name-value pairs or template entries in a dictionary
    and then saving the dictionary object via pickling ...

    --
    ----------------------------------------------------------------------------
    Tim Daneliuk tundra@tundrawa re.com
    PGP Key: http://www.tundraware.com/PGP/

    Comment

    Working...