목록HTML (2)
MyPrograming
1. 세션 (Session)? 일정 시간동안 같은 브라우저로 부터 들어오는 일련의 요구를 하나의 상태로 보고 그 상태를 유지하는 기술 즉, 웹 브라우저를 통해 웹 서버에 접속한 이후로 브라우저를 종료할 때 까지 유지되는 상태 클라이언트가 Request를 보내면, 해당 서버의 엔진이 클라이언트에게 유일한 ID를 부여하는 데 이것이 세션ID다. 1-1 세션의 특징. 세션은 쿠키를 기반하고 있지만, 사용자 정보 파일을 브라우저에 저장하는 쿠키와 달리 세션은 서버 측에서 관리한다. 서버에서는 클라이언트를 구분하기 위해 세션 ID를 부여하며 웹 브라우저가 서버에 접속해서 브라우저를 종료할 때까지 인증상태를 유지한다. 물론 접속 시간에 제한을 두어 일정 시간 응답이 없다면 정보가 유지되지 않게 설정이 가능하다. 사..
네트워크 전송 특정 사용자가 어떠한 홈페이지로 이동하기 위해서 URL을 주소창에 입력하고 ENTER키를 누르면 해당 주소에 맞게 원하는 페이지로 이동하게 된다. 이때 사용자가 URL을 입력함으로써 서버 내부에서는 클라이언트의 요청에 응답하기 위한 처리가 이루어진다. 클라이언트가 서버로 요청을 보내는 HTTP method에는 "GET"과 "POST" 방식이 존재한다. 이는 세부적으로 보안과 전달방식, 전달할 수 있는 데이터의 양에 대해서 차이점이 발생하게 된다. 1. GET 방식 영어단어 get은 '가져오다' 라는 뜻을 가진 단어이다. 즉 get은 어떠한 정보를 가져와서 조회하기 위해서 사용되는 방식이다. get 방식은 간단한 데이터를 URL에 넣을 수 있도록 설계된 방식이며 데이터를 보내는 양에 한계가 ..