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 is array explain it?

529


Explain the typeof operator?

619


Write a program in Java to display the IP address of the local and remote machine.

1868


What is the difference between "var" and "let" keywords?

602


What is a javascript code?

567






How to have an element invoke a javascript on selection, instead of going to a new url?

532


How to embed javascript in a web page?

578


How to write comment in JavaScript?

1061


What is the difference between null and undefined?

565


What is null in javascript?

615


Explain the difference between “==” and “===”?

616


What does window.print() do in Javascript?

689


To put a "close window" link on a page ?

616


Name some of the built-in methods and the values returned by them.

645


How to make a array as a stack using javascript?

598