fix a bug, should keep cookie and sesson config same with parent app