<?php require('/return_openid.php'); setcookie('user_id','445656',time()+36000,"/") ; $open = new wechat(); $id =$open->get_openid(); echo $id ?>