John Topley’s Weblog

Rails Tip #6: Resetting The Session

Rails makes it dead easy to clean up objects in the HTTP session. No need for anything as complicated as iterating over them and setting them to nil. Simply use:

reset_session

—within a controller.

Comments

There aren’t any comments on this post. Comments are closed.


Archives

  • Jan
  • Feb
  • Mar
  • Apr
  • May
  • Jun
  • Jul
  • Aug
  • Sep
  • Oct
  • Nov
  • Dec
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014

More Archives


Sign In