Do I need to use sessions if I don't store anything in them?

Hi,

I got very small app that has user part and admin part. The problem is
that after a while the sessions table has ~150mb. I don’t really need
to store any user data in the session for the user part. I only need
it for the admin part.

Can I simply turn session off in controllers from the user part? Are
there any drawbacks of turning the session off?

Regards

On 17 Apr 2008, at 20:24, szimek wrote:

Just stick session :off
in the relevant controllers.
Other than not being able to use it, no.

Fred

If you’re having non-admin users login then obviously you’re going to
lose the ability to remember who they are unless you make their id
part of every page/postback.

On 17 Kwi, 21:33, Frederick C. [email protected] wrote:

Can I simply turn session off in controllers from the user part? Are
there any drawbacks of turning the session off?

Just stick session :off
in the relevant controllers.
Other than not being able to use it, no.

Fred

Regards

Thanks

Also, you’ll lose the ability to have store messages in the flash.
(flash[:whatever]) messages. In case that’s something you’re using
currently.

RSL