1 / 5

cookie

cookie. ㅇ 서버가 클라이언트에 어떤 내용을 기록해 놓은 정보 파일. ㅇ 구글 / 페이스북 등의 사이트에서 사용하는 로그인 유지 기능 웹사이트 접속시 띄워주는 팝업창을 닫으면서 오늘 하루 열지 않음 기능 등. ㅇ JSP, JavaScript 둘다 쿠키 사용 가능. cookie. ㅇ jQuery 플러그인 jquery.cookie.js 를 사용한 방법. - jquery 및 cookie 플러그인 import. - cookie 값 저장

blade
Télécharger la présentation

cookie

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. cookie ㅇ 서버가 클라이언트에 어떤 내용을 기록해 놓은 정보 파일 ㅇ 구글 / 페이스북 등의 사이트에서 사용하는 로그인 유지기능 웹사이트 접속시 띄워주는 팝업창을 닫으면서 오늘 하루 열지 않음 기능 등 ㅇ JSP, JavaScript 둘다 쿠키 사용 가능

  2. cookie ㅇ jQuery 플러그인 jquery.cookie.js 를 사용한 방법 - jquery 및 cookie 플러그인 import - cookie 값 저장 $.cookie(key, value, option); [option] expires : 일 단위, 디폴트 세션 ex) 1 path : 쿠키가 적용되는 페이지 경로 전체 페이지에 적용하려면 ‘/’ domain : 쿠키가 적용될 도메인 ex) naver.com secure : https 프로토콜 사용여부, 디폴트 false raw : 인코딩/디코딩 사용여부, 디폴트 false 9-1-a.jsp - cookie 값 확인 $.cookie(key); - cookie 값 삭제 $.cookie(key, null);

  3. 연습문제 ㅇ 쿠키 저장 - 9-1-a.jsp(1 / 3)

  4. 연습문제 ㅇ 쿠키 저장 - 9-1-b.jsp(2 / 3)

  5. 연습문제 ㅇ 쿠키 저장 - 실행결과 (3 / 3)

More Related