代码如下:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Data; using System.Configuration
1、用户登录状态操作类UserLogin
<?php
final class UserLogin {
public function __construct() {
}
public static function getUserInfo() {
if (isset($_COOKIE[user_id])&&$_COOKIE[user_id]&&(trim($_COOKIE[user_id])!=)) {
if (isset($_SESSION[USER_INFO]))
return $