Can you give more information about your scenario?Usually you would have set information on the server / application about when sessions expire...Look at some tutorials on sessions also.
thanks for replying me...i want to check wether the session is expires or not. when i simply let my application as it is for half an hour the session has expired at that time the login has to expire this is my scenario