Which is better approach among four(HttpSession,cookie,URL
Rewriting, Hidden Fields) Session Tracking technic's ? Why ?
Answer Posted / sridhar
Best Approaches are HttpSession and URL Rewriting.....
in HttpSession when client sends the request to the server first time session object will be created.
HttpSession ses=Request.getSession(true);//if session is not created a new session will be created and JsessionId is sent to the client.if session is already created existed Jsession Id send to the client.
HttpSession ses=Request.getSession(false);//if session is already created the Jsessionid will send to the client
if not it will not create Session object.
If browser doesn't support cookies the appln will not work properly.
So to avoid this problem We can use UrlRewriting........
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
What is cgi?
Difference between GET and POST?
What is http servlet?
What are the uses of servlet
What is servlet looping or chaining?
What is the procedure of invoking different servlet in a different application?
What is the web server used for running the Servlets?
What is the capacity the doget can send to the server?
What do you mean by servlet context?
Why is http protocol called as a stateless protocol?
Explain the servlet context.
What are sessions in servlets?
How do we translate jsp?
How do you find out what client machine is making a request to your servlet
Why the concept of single thread model interface is used?