newbie problem => sessions

Hi Sabin,

sabin sur wrote:

how can i put in a session as an object?

There's no magic here. The session will hold an object if you assign an object to it.

@session['something'] = "hello world"

But if you keep using '@session' you're going to have problems. The instance variable syntax has been depracated since 1.2. Use 'session' instead (drop the '@')

but i want to give to the @session['something'] a name, an age, etc

You need to create a model for your 'something' object that includes those attributes. Then assign that object to the session. The syntax you wanted to use should work, but I haven't tested it..

hth, Bill