Used session instead of history for cookies.