session apply to view