Forum: Ruby on Rails skip_before_filter :verify_authenticity_token make session data not accessible.

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.
Chuong Huynh (Guest)
on 2009-03-09 08:55
(Received via mailing list)
Hi all,

I'm stucked in following situation: I implemented image upload feature
using swfupload. The submission from swfupload cause exception
ActionController::InvalidAuthenticityToken (rails 2.2) -
understandable because swfupload doesn't send valid token. I try to
temporarily turn off the checking in the controller by using
"skip_before_filter :verify_authenticity_token", but strange thing
happen: session data is not accessible - for example get current_user
become nil, or login_required halt.

Has anyone experienced this? Could someone tell what did I do wrong?

Thanks
- Chuong
This topic is locked and can not be replied to.