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


Please Help Members By Posting Answers For Below Questions

In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

766


What is the procedure for initializing a servlet?

739


How do you run a servlet?

764


Why do we use sendredirect() method?

726


how many jsp scripting elements are there and what are those?

776


When servlet is loaded?

784


What is called a session?

824


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

819


Should I override the service() method?

856


How can we create deadlock situation in servlet?

1054


Is java servlet still used?

753


Which interface must be implemented by all servlets?

1021


What is servlet container. how it works?

864


How can we refresh automatically when new data is entered into the database?

809


Which event is fired at the time of project deployment and undeployment?

1043