remove writer dependency for session Expire function