make table persistent by implementing use of sessions