[Nitro] Quick session questions

Jonathan Buch john at oxyliquit.de
Mon Jun 12 12:35:25 EDT 2006


On Mon, 12 Jun 2006 18:01:23 +0200, Fabian Buch <fabian at oggu.de> wrote:

> Since it might be useful for other ppl too, I posted it on oxywtf.de
> including an answer:
>
> Am 12.06.2006 um 15:57 schrieb Lars Olsson:
>> 1. How do I change the session cache type (to use og instead of memory
>> sessions)
>
> http://oxyliquit.de/question/60
>
>> 2. In a controller the "session" hash contains the current session
>> variables. Do I need to do something special in order to use this hash
>> in
>> the view as well?
>
> No, you can use it in templates the same way as in the controller.

Side note:

In the Model (and everywhere else you would suspect that the Session
is not available use: `Session.current`, which always works.

Kashia

-- 
Feel the love
http://pinkjuice.com/pics/ruby.png



More information about the Nitro-general mailing list