Science, asked by vibhah7029, 1 year ago

How much data we can store in a session object in servlet ?

Answers

Answered by sanukj
0
Any amount of data can be stored there because the session is kept on the server side.

The only limitation is sessionId length, which shouldn't exceed ~4000 bytes - this limitation is implied by HTTP header length limitation to 4Kb since sessionId may be stored in the cookie or encoded in URL (using "URL rewriting") and the cookie specification says the size of cookie as well as HTTP request (e.g. GET /document.html ) cannot be longer then 4kb.


#thank _you
#hope this was helpful for you
Similar questions