Forum: Ruby on Rails Rails without cookies

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.
4d8b13b54ae2fabfffd5537b04c7369c?d=identicon&s=25 Scott Fortmann-Roe (Guest)
on 2006-05-27 14:52
(Received via mailing list)
Why does rails keep installing cookies on users machines, even if I am
not ussing th session variable for anything?

How do I stop this?

Thanks, Scott
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-05-27 15:37
(Received via mailing list)
i discussed this previously with the same question.  If you dont want
the
_session_id cookie created, you have to disable sessions by putting

    session :disabled => true


in  application.rb

Adam
4d8b13b54ae2fabfffd5537b04c7369c?d=identicon&s=25 Scott Fortmann-Roe (Guest)
on 2006-05-29 10:14
(Received via mailing list)
This doesn't seem to work for me I'm still getting session cookies.
Rails version 1.1.2.

On 5/27/06, Adam Denenberg <straightflush@gmail.com> wrote:
> i discussed this previously with the same question.  If you dont want the
> _session_id cookie created, you have to disable sessions by putting
>  session :disabled => true
>
>
>
in application.rb
>
>
Adam
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-05-29 16:53
(Received via mailing list)
hmm maybe they have to be "off" and not "disabled" then ?

try

session :off

in application.rb

adam
59528506e6297141161afcde91d677c9?d=identicon&s=25 Nicolai Reuschling (codeblogger)
on 2006-05-29 17:14
(Received via mailing list)
http://api.rubyonrails.com/classes/ActionControlle...

  # turn off session management for all actions.
  session :off
4d8b13b54ae2fabfffd5537b04c7369c?d=identicon&s=25 Scott Fortmann-Roe (Guest)
on 2006-05-30 11:21
(Received via mailing list)
session :off  does the trick.

Thanks guys!
This topic is locked and can not be replied to.