using a current_user helper will allow you to isolate session access and logic to your controller and helper and limit logic and app knowledge in your view.