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
How compare function works javascript?
How to define a named function in JavScript?
What is the use of dom?
How to add/remove properties to object dynamically in javascript?
Is javascript hard to learn?
What are events in javascript?
How to define name function in javascript?
Is not a function error in javascript?
What is === in javascript?
Why do we need to declare variables?
What is the result of below given line of code in java script? 5+4+'7'?
Can you access Cookie using javascript?
Is javascript event driven?
How long does it take to get good at javascript?
Please write the Code of simple javascript calculator withot eval() function