Question: Session creation and tracking
1.Implement the information persistence across servlet destroy or servlet container start/stop. Write a servlet such that when it is stopped (either by container shutdown or servlet stop), it should write the current session start time and its duration in a persistent file on the disk. On restart of container/servlet, it should display the following information of last servlet instance: a) start time, b) duration. On refresh of the servlet, it should display a random number (lucky number) between 5 and 25.