Java
Cookie cookie = new Cookie(COOKIE_NAME, encrypt_cookieV); cookie.setMaxAge(60 * 60); cookie.setPath("/"); response.addCookie(cookie);
PHP
setcookie($cookie_name,$cookie_value,time()+3600*1,‘‘,$headers[‘HOST‘])
PHP Java 设置cookie方法,布布扣,bubuko.com
时间: 2024-10-26 19:24:15