working storing thecurrecnt session in local