sessions controller modification