Explain about session? Where it runs & what are different
types of session handling?

Answer Posted / kannappanksk

HTTP is a protocol which does not maintain the state of the
client. It is state-less protocol, to make the protocol
stateful we need to provide the session handling mechanism.

This will be provided as per the need of the Application.
The basic categories are 4 ways:1. Using Cookies2. Using
Session API in Servlets3. Using Hidden form fields4. URL
Rewriting.

The best one is using Session objects with help of Session
API. Cookies are harmful because they are allowed to store
on to the client machine. This way you can send a virus
file as cookie So normally the System Admin disables them
to protect their network.

The session API allows us to create SessionID and set for
the client. per Client you can have one session object
which will run in the Server.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the datatypes in javascript?

642


Can you assign an anonymous function to a variable and pass it as an argument to another function?

659


how can we retrieve value from one database server and store them another database server using sql server code

1791


what difference between args.length and args.length() in command line argument?

1992


Do I need var in javascript?

681


Does spread operator deep copy?

716


List out the Mouse Events?

712


What is external javascript?

707


Which software is best for javascript?

720


Do unused imports affect performance javascript?

1284


What is the similarity between the 1st and 2nd statement?

692


What is a closure javascript? Explain

670


What is an onclick?

688


How to validate a form in javascript?

670


How can you declare a class in javascript?

768