Skip to content

Instantly share code, notes, and snippets.

@ihower
Created February 4, 2009 17:18
Show Gist options
  • Save ihower/58218 to your computer and use it in GitHub Desktop.
Save ihower/58218 to your computer and use it in GitHub Desktop.
class ApplicationController < ActionController::Base
before_filter :log_session
def log_session
logger.info("Session debug: #{ (session.cgi.cookies['_registrano_session']).to_yaml }")
logger.info("Cookie get: #{session.instance_variable_get("@data").to_yaml}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment