1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<%
session.invalidate();//세션 전체 삭제
session.removeAttribute("키값"); //세션 한개 삭제
formId.equals(dbId); // jsp에서 동등 비교 ( ==)
session.setAttribute("키값", "저장할값"); // 세션값 저장 session.setAttribute
%>
</body>
</html>
|
cs |
'Language > JSP' 카테고리의 다른 글
데이터베이스 연동 (0) | 2020.06.07 |
---|---|
Database (0) | 2020.06.07 |
response 내장객체 (0) | 2020.06.02 |
application 내장객체 (0) | 2020.06.02 |
액션태그 (0) | 2020.06.02 |