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

how to activate and deactivate the constraint with all the default values

0 Answers  


How to create a popup warning box?

0 Answers  


How much do javascript programmers make?

0 Answers  


What is the difference between programing language and scripting language.?

3 Answers   Reliance, TCS,


What does “1?+2+4 Evaluate to? What about 5 + 4 + “3??

0 Answers  






How to add/remove properties to object dynamically in javascript?

0 Answers  


How to create multiline strings in javascript?

0 Answers  


how can we create own web browser?

1 Answers   IBM, Infosys,


How to define a anonymous function?

0 Answers  


What are the five data types?

0 Answers  


How can javascript language be separated from objects?

0 Answers  


How do you extend classes Code snippet: const circle = { radius: 20, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius };

1 Answers  


Categories