Change implementation of store url in session