title: AngularJS: schedule function to be executed even if browser is closed
body: <p>I want to schedule some logic (function) to be executed after specified time offset (let's say an hour) even if the user will close the session/browser. Use case:</p>
  
  <p>1) User registers for event in my system</p>
  
  <p>2) System sends email notification with confirmation link</p>
  
  <p>3) If user does not click on confirmation link within one hour he is losing his registration</p>
  
  <p>What camed to my mind is to implement my "check time logic" in timout (<a href="https://docs.angularjs.org/api/ng/service/" rel="nofollow">https://docs.angularjs.org/api/ng/service/</a>$timeout) so I will schedule function which will be executed after one hour and it will check if the given user confirmed or not, but I am wondering whether this function will be executed at all if the browser will be closed? I believe this "timout" function will be only running on client side, so when the browser is closed the function will not be executed, am I right?</p>
  
  <p>What could be the solution for my problem?</p>