It only occurs one time when the application loads. Before the application run SQL. It can be used for data processing or for checking variables. Ex: if ([glo_var_department] != 'financial'){ sc_redir(app_x.php); }