dever 7 years ago
parent
commit
2ea9019b72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tm/lib/Controller/EventsController.class.php

+ 1 - 1
tm/lib/Controller/EventsController.class.php

@@ -495,7 +495,7 @@ class EventsController extends Controller {
 				$tokenid = Request::g('tokenId');
 			}
 			if ($tokenid) {
-				$_COOKIE['tokenid'] = $tokenid;
+				Cookie::set ( 'tokenid', $tokenid, 60 * 60 * 24 * 20 ,'.'.$_SERVER['HTTP_HOST']);
 			}
 			if ($tokenid) {
 				# app中已登陆