Handle multiple sessions based on the URL path