Chapter 32 Flashcards

1
Q

Why we need session

A

To track user information and steps etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are 2 possible problems of session when user bookmark a page

A
  1. Session might expire

2. Session might recycle and use by another user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which method expires session

A

session.invalidate()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are HttpServeletResponse 2 methods for encoding

A
  1. String encodeURL

2. String encodeRedirectURL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly