1. 从session中直接获取 $valid_user = $_SESSION['valid_user']; 转载于:https://www.cnblogs.com/souroot/p/3248556.html