Forum: Nitro Session

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
818368a59c6201cb1bf1dbe3235d6310?d=identicon&s=25 Jason Southwell (Guest)
on 2008-03-24 06:23
(Received via mailing list)
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?
7a4e995e378ef66de0ceaea5e1381ee1?d=identicon&s=25 George Moschovitis (Guest)
on 2008-03-24 09:16
(Received via mailing list)
try just:

session[:MYVAL] = str

-g.

On Mon, Mar 24, 2008 at 7:09 AM, Jason Southwell <jason@southwell.net>
818368a59c6201cb1bf1dbe3235d6310?d=identicon&s=25 Jason Southwell (Guest)
on 2008-03-24 14:40
(Received via mailing list)
> 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.
7a4e995e378ef66de0ceaea5e1381ee1?d=identicon&s=25 George Moschovitis (Guest)
on 2008-03-24 15:05
(Received via mailing list)
email me privately your code, so i can investigate and help you!
-g.

On Mon, Mar 24, 2008 at 3:38 PM, Jason Southwell <jason@southwell.net>
818368a59c6201cb1bf1dbe3235d6310?d=identicon&s=25 Jason Southwell (Guest)
on 2008-03-26 05:31
(Received via mailing list)
>>     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.
818368a59c6201cb1bf1dbe3235d6310?d=identicon&s=25 Jason Southwell (Guest)
on 2008-03-26 05:55
(Received via mailing list)
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.
7a4e995e378ef66de0ceaea5e1381ee1?d=identicon&s=25 George Moschovitis (Guest)
on 2008-03-26 09:29
(Received via mailing list)
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.

On Wed, Mar 26, 2008 at 6:55 AM, Jason Southwell <jason@southwell.net>
This topic is locked and can not be replied to.