Access to session object when creating a behavior

I am still learning Ruby, Rails, and Radiant, but I am trying to
develop a new behavior for a custom application that extends Radiant.

I see that have access to request and response objects in the
BaseBehavior, but do I have access to the session object?

I want to make all pages aware of the logged in user, but I am not
sure how to go about doing this with Radiant.

Appreciate any help…

jsmorris wrote:

You should have access to the session on the request object. Use the
session method.


John L.
http://wiseheartdesign.com

On 02/08/2006, at 1:02 PM, John W. Long wrote:

jsmorris wrote:

I see that have access to request and response objects in the
BaseBehavior, but do I have access to the session object?

You should have access to the session on the request object. Use the
session method.

The session is disabled in SiteController, line 4:

session :off

remember to remove that line before playing with the sessions.

Bodhi

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