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...

How we can check in particular page the session will be
alive or not

Answer Posted / aseet padhi

U can use request.getSession(false); method in
HttpServletRequest interface.It returns the HttpSession
associated with this request or null if the request has no
valid session.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the exceptions thrown by servlets? Why?

1093


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

982


What are the common methods that are included in the http servlet class?

993


What is ServletConfig object?

1096


What exactly are the functions of servlet?

1032


What is a web application and what is it’s directory structure?

1020


How to generate the server side programming and the advantages of it over the other languages?

938


What are the supporting protocol by HttpServlet ?

1110


What are the differences between forward() method and sendredirect() methods?

966


What is servlet and its life cycle?

1068


What is session tracking?

1146


What is pure servlet?

1161


Is java servlet still used?

994


How does java thread pool work?

1016


Can we fetch the attributes related to a servlet on a different servlet?

1082