Hi,
I'd like to know if and how one can reload the current page via code, anywhere in the code.
For my purposes, META redirects won't do as they come before the refresh command would be useful. JavaScript reload looks like it would do the trick, but I need to call the reload function without user interviation (via clicking something). Using an onLoad in BODY won't do either as it comes before the refresh is needed. I couldn't find anything in the PHP manual that can do this. I'm not concerned about cache effects.
Maybe this will better explain what I want to do.
Example Psuedo-Code:
if ($userok == 1) {
loadUserSessionData();
//reload this page right now without user intervention
}
Is there some functional PHP/JS/HTML/Other code i could plug in where the comment is? Thanks.