is there any function in php, that i can use to set the time out of my aplication(web)?
have your code do it.
set the time in the session when it is created, from that point on check if the time limit has been exceeded.