[Nitro] Session

2 views
Skip to first unread message

Jason Southwell

unread,
Mar 24, 2008, 1:09:15 AM3/24/08
to nitro-...@rubyforge.org
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?
_______________________________________________
Nitro-general mailing list
Nitro-...@rubyforge.org
http://rubyforge.org/mailman/listinfo/nitro-general

George Moschovitis

unread,
Mar 24, 2008, 4:15:27 AM3/24/08
to General discussion about Nitro

Jason Southwell

unread,
Mar 24, 2008, 9:38:39 AM3/24/08
to General discussion about Nitro
> 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.

George Moschovitis

unread,
Mar 24, 2008, 10:04:15 AM3/24/08
to General discussion about Nitro
email me privately your code, so i can investigate and help you!
-g.

Jason Southwell

unread,
Mar 26, 2008, 12:30:30 AM3/26/08
to General discussion about Nitro
>> 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.

Jason Southwell

unread,
Mar 26, 2008, 12:55:05 AM3/26/08
to General discussion about Nitro
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.

George Moschovitis

unread,
Mar 26, 2008, 4:28:37 AM3/26/08
to General discussion about Nitro
hmm...
which browser are you using...

try to use

0.0.0.0
127.0.0.11
localhost

to access your app...

try to use firefox and 0.0.0.0:9000 to access your app and tell me if it works...

-g.
Reply all
Reply to author
Forward
0 new messages