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



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

Answer / 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

More JavaScript Interview Questions

Can an anonymous function be assigned to a variable?

0 Answers  


How to you change the title of the page by javascript?

0 Answers  


What are the seven data types of javascript?

0 Answers  


What are the different ways to create an array in javascript?

0 Answers  


What would be the result of 2+5+”3″?

0 Answers  






What is scope variable in javascript?

0 Answers  


Explain javascript debounce function?

0 Answers  


what is the difference between the below two statements:- (1) var myname = "akiii"; (2) myname = "akiii";

0 Answers  


What is the difference between remove() and removeChild()?

0 Answers  


Can any one tell me how Java is purely an Oops language

3 Answers  


What is the scope variable in javascript?

0 Answers  


How do you change the style/class on any element?

0 Answers  


Categories