history url using sessions