solve session problem