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
What is the difference between push() and concat() in javascript?
discuss scoping in javascript?
What is the difference between undeclared & undefined?
What is closure? Give an example.
What is isnan in javascript?
What is the Infinity property used for in Javascript?
What is hoisted in javascript?
What is use strict in javascript?
Why do we need currying?
What are a fixed-width table and its advantages in javascript?
Is it possible to use javascript to change the meta-tags of the page?
Why is javascript not oop?
Is html and javascript the same?
how do you declare variables in javascript?
What do you mean by enumeration?