I have Rails 2.3.2 and I want to disable session support for one
controller action, so that means that I don't want to save session
variables to database when I'm accessing url. For example '/my_action'
url. I have tried to implement this using session :off, :only =>
:my_action but this doesn't work.
The message I recieve is: DEPRECATION WARNING: Disabling sessions for a
single controller has been deprecated. Sessions are now lazy loaded. So
if you don't access them, consider them off. You can still modify the
session cookie options with request.session_options..
I have Rails 2.3.2 and I want to disable session support for one
controller action, so that means that I don't want to save session
variables to database when I'm accessing url. For example '/my_action'
url. I have tried to implement this using session :off, :only =>
:my_action but this doesn't work.
The message I recieve is: DEPRECATION WARNING: Disabling sessions for a
single controller has been deprecated. Sessions are now lazy loaded. So
if you don't access them, consider them off. You can still modify the
session cookie options with request.session_options..
Did you read the message? Did you notice the second sentence? Does
that suggest anything? Have you tried that approach?
I have Rails 2.3.2 and I want to disable session support for one
controller action, so that means that I don't want to save session
variables to database when I'm accessing url. For example '/my_action'
url. I have tried to implement this using session :off, :only =>
:my_action but this doesn't work.
The message I recieve is: DEPRECATION WARNING: Disabling sessions for a
single controller has been deprecated. Sessions are now lazy loaded. So
if you don't access them, consider them off. You can still modify the
session cookie options with request.session_options..
Did you read the message? Did you notice the second sentence? Does
that suggest anything? Have you tried that approach?
Yes, I have read this sentence. I'm not accessing any session variable
or setting them but anyway system creates a session record, wich I don't
need. Maybe I don't understand the idea. I need any suggestions..
I have Rails 2.3.2 and I want to disable session support for one
controller action, so that means that I don't want to save session
variables to database when I'm accessing url. For example '/my_action'
url. I have tried to implement this using session :off, :only =>
:my_action but this doesn't work.
The message I recieve is: DEPRECATION WARNING: Disabling sessions for a
single controller has been deprecated. Sessions are now lazy loaded. So
if you don't access them, consider them off. You can still modify the
session cookie options with request.session_options..
Did you read the message? Did you notice the second sentence? Does
that suggest anything? Have you tried that approach?
Yes, I have read this sentence. I'm not accessing any session variable
or setting them but anyway system creates a session record, wich I don't
need. Maybe I don't understand the idea. I need any suggestions..
The session is not created until you check to see if the session is
created. Do not check the session.