First post to this list. I’m running Nitro .50 as installed from the
Gems posted here recently.

When I set a session variable via

@context.session[:MYVAR] = str

it is always nil on subsequent requests.

I’ve also tried dropping the @context but still nil.

Is there any direction on how to properly use session variables?

try just:

session[:MYVAL] = str


On Mon, Mar 24, 2008 at 7:09 AM, Jason S. [email protected]

session[:MYVAL] = str
I’ve also tried dropping the @context but still nil.

As I said, i tried that but it is still nil. The session does not seem
to persist between page hits.

email me privately your code, so i can investigate and help you!

On Mon, Mar 24, 2008 at 3:38 PM, Jason S. [email protected]

One more thing. If I set the cookie via YUI in the browser, I can read
it in the cookies property server-side. However, nothing set in the
cookies property ever makes it to the client.

I've also tried dropping the @context but still nil.

Setting the cookies hash directly doesn’t work either.

Could this have something to do with using YUI on the client side? I
wouldn’t think it would overwrite any cookies though.

which browser are you using…

try to use

to access your app…

try to use firefox and to access your app and tell me if it


On Wed, Mar 26, 2008 at 6:55 AM, Jason S. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs