end session and reload page from within logout function?
Posted: Sat Dec 06, 2008 6:28 am
Hi all
I've a logout button that runs a function to destroy the session and then return to the same page. The location of the logout function within the script means that on the button click the user doesn't return to login prompt as I'd like. A page reload at this point instantly deals with it. I'd rather not rework the flow of the script because this is the last thing I'm doing on the page. How do I force the browser to reload the page from within the logout function?
Thanks, Steve
I've a logout button that runs a function to destroy the session and then return to the same page. The location of the logout function within the script means that on the button click the user doesn't return to login prompt as I'd like. A page reload at this point instantly deals with it. I'd rather not rework the flow of the script because this is the last thing I'm doing on the page. How do I force the browser to reload the page from within the logout function?
Thanks, Steve