Sfoglia il codice sorgente

setcookie 放到 js 用

visuddhinanda 2 anni fa
parent
commit
997561077d
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      public/app/ucenter/index.php

+ 2 - 0
public/app/ucenter/index.php

@@ -178,8 +178,10 @@ if (isset($_POST["op"]) && $_POST["op"] == "new") {
 				}
 				#给js用的
 				setcookie("uid", $uid, $ExpTime,"/");
+				setcookie("user_id", $uid, $ExpTime,"/");
 				setcookie("username", $username, $ExpTime,"/");
 				setcookie("userid", $user_uuid, $ExpTime,"/");
+				setcookie("user_uid", $user_uuid, $ExpTime,"/");
 				setcookie("nickname", $nickname, $ExpTime,"/");
 				setcookie("email", $email, $ExpTime,"/");