Skip to content

Instantly share code, notes, and snippets.

@myobie
Created February 5, 2009 19:48
Show Gist options
  • Save myobie/58954 to your computer and use it in GitHub Desktop.
Save myobie/58954 to your computer and use it in GitHub Desktop.
## In my controller
def test_set
session[:test_value] = 'This should exist.'
redirect_to '/test_get'
end
def test_get
@value = session[:test_value]
session[:test_value] = nil
render :text => @value
end
## hitting website.com/test_set redirects to /test_get and it successfully retrieves the session value (before resetting it).
## But it doesn't work with my restful_authentication setup: http://gist.github.com/58934
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment