Forum: Radiant CMS Session :off in SiteController

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.
Bd4c152cdbb373a32ee24d0990cb52d2?d=identicon&s=25 Steven Line (sline)
on 2008-11-02 16:56
Hi,

I'm having problems with sessions and I noticed that in SiteController
the first line is

session :off

I guess I could read all the code but could somebody tell me why that's
in there and if it would be safe for me to remove it?

Steve
Bd4c152cdbb373a32ee24d0990cb52d2?d=identicon&s=25 Steven Line (sline)
on 2008-11-02 17:02
Let me add the error I was seeing here, so future forum searchers can
find the error and my possible fix.

Here's what I was seeing:

    undefined method `session_id' for {}:Hash

I commented out the "session :off" line in SiteController, and it fixed
my problem.

Steve
This topic is locked and can not be replied to.