Session :off in SiteController


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?


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.