How are Sessions are more advantage than using of Cookies
or URLReWriting?
Answer Posted / shiva
Sessions are more secure than cookies because, sessions are
stored at server side,and cookies are stored at client side.
if at all user deletes the cookies in between the process,
the information will be lost.. In URL rewriting for every
page we should carry the information, in that there may be
any secure data. so, to avoid this we need to follow the
hidden fields.. compare to all these,sessions will maintain
good security...
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
How to handle exceptions thrown by application with another servlet?
Explain the architechure of a servlet?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
Which method of the httpservletrequest object is used?
What is cookie? Why is cookie used?
What are the mechanisms used by a servlet container for maintaining session information?
Describe servlet?
Can you send an authentication error from a servlet?
What are some disadvantages of storing session state in cookies?
What is the need of session tracking in web application?
What are the types of servlet?
How to generate the server side programming and the advantages of it over the other languages?
what do you understand by url rewriting?
Why do we have servlet filters?
What is the need of servlet filters?