Skip_before_filter :verify_authenticity_token make session data not accessible


#1

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