most likely, after sitting for a while the session has timed out and the security assist restrict access rule is trying to redirect you to another page.
because of the white space on the page causing the header already sent error, the redirect is failing.
I would need to see a copy of the page and the exact error text to tell exactly where the problem is.