store the user name and shard id into session