Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between CGI and Servlet?

1080


what is servlet chaining?

1097


What are the steps that are involved in using the httpservlet class?

1127


How do we call one servlet from another servlet?

1046


Differentiate between the web server and application server?

1064


What is Client-Server Computing?

2422


Are Servlets Thread Safe? How to achieve thread safety in servlets?

972


What is the major difference between servlet and applet?

1003


Difference between java beans & servlets?

1061


How do I use cookies to store session state on the client?

970


What is setattribute in servlet?

1143


List out the difference between ServletConfig and ServletContext?

1046


How can we upload the file to the server using servlet?

1087


What is the difference between servlet and jsp?

1119


Explain the difference between jsp and servlet?

1084