Forum: Ruby on Rails Sessions problem

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.
Bc676b4c4f934105ca524a4547f94f51?d=identicon&s=25 Milan Dobrota (milandobrota)
on 2009-06-06 02:29
When I deploy the application and set session variables in controller, I
get response in browser.

test_id = 2 and question_id = 1Content-Type: text/html; charset=utf-8
Set-Cookie: _paperclip_session=78f6281e39536254326432c524f3ace0; path=/
Status: 302 Found
Location: http://www.aaaa.com/app/test/1/1
X-Runtime: 36ms
Content-Length: 110
Cache-Control: no-cache

I ran rake db:sessions:create, migrated the db, uncommented
active_record_store line in environment.rb and protect_from_forgery line
in application.rb. What could be the issue?

The hosting is using fcgi.
Bc676b4c4f934105ca524a4547f94f51?d=identicon&s=25 Milan Dobrota (milandobrota)
on 2009-06-06 11:58
OK, I resolved the problem. Sessions were OK, I had a print command that
I used while developing to display some values on mongrel log, while
here it prepended the text to the response and thus made it invalid.

Milan Dobrota wrote:
> When I deploy the application and set session variables in controller, I
> get response in browser.
>
> test_id = 2 and question_id = 1Content-Type: text/html; charset=utf-8
> Set-Cookie: _paperclip_session=78f6281e39536254326432c524f3ace0; path=/
> Status: 302 Found
> Location: http://www.aaaa.com/app/test/1/1
> X-Runtime: 36ms
> Content-Length: 110
> Cache-Control: no-cache
>
> I ran rake db:sessions:create, migrated the db, uncommented
> active_record_store line in environment.rb and protect_from_forgery line
> in application.rb. What could be the issue?
>
> The hosting is using fcgi.
This topic is locked and can not be replied to.