Moving from storing data in sessions to storing in parameters