updated cookie to only last 24 hours