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

How onclick works in javascript?

468


Which keywords are used to handle exceptions?

523


What are javascript closures?

543


What is emotional closure?

477


Is javascript free to install?

531






What makes a relation a function?

493


Describe the properties of an anonymous function in JavaScript?

716


What are nodes in javascript?

440


What is foreach loop in javascript?

525


Why javascript is called lightweight language?

497


What is null in javascript?

532


Why is currying called currying?

463


What are the boolean operators supported by javascript? And operator: &&

488


Where do you write javascript?

485


Explain the process of document loading.

502