write in SessionHelper