Created
June 29, 2012 06:36
-
-
Save steverandy/3016276 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Guys, i'm having a problem similar with those reported with rails 3.0.4 and sessions with ajax requests. | |
The problem is that i have an action that receives an ajax POST and sets an session. | |
def test | |
session[:user] = me | |
end | |
but the session vanishes and don't become available in the next request. | |
The routes are OK, and anything else are working fine. | |
I don't believe that this relates to the csrf-token problem of rails 3.0.4 because the token is passed to rails by jquery. And indeed i can access the session hash from within the POST request . But anything I include in the session (within the POST request) is propagate to the next request. | |
If anyone can help me i would be very thankful. | |
Dimas Cyriaco |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment