在加载之前,使用javascript检查每个页面上的外部会话变量 [英]Checking external session variable on each page before loading, with javascript