Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 221 Bytes

cookie.md

File metadata and controls

7 lines (6 loc) · 221 Bytes

cookie

  • 设置cookie

      // use Symfony\Component\HttpFoundation\Cookie;
      $response = new JsonResponse();
      // $response = new Response();
      $response->headers->setCookie(new Cookie('login', uniqid(), $expire));