def set_session_data(storage, messages):
 storage.request.session[storage.session_key] = storage.serialize_messages(messages)
 if hasattr(storage, '_loaded_data'):
  del storage._loaded_data

def set_session_data ( storage , messages ) : storage . request . session [ storage . session_key ] = storage . serialize_messages ( messages ) if hasattr ( storage , '_loaded_data' ) : del storage . _loaded_data
store session data persistently so that it is propagated automatically to new logged in clients .