I want to display an error if a user tries to go to /admin/ when they aren't logged in as an admin. I don't want to pass stuff in the URL and I do not want to do a $_POST to display the error. I just want to display a message and when you refresh it is gone.
For example, go to this URL: http://getsatisfaction.com/getsatisfaction/topics/notifications_box/edit
It returns you back to the topic and says "I'm sorry, but you have been denied access to edit this topic."
When you refresh it is gone. I want to be able to display an error like that too. Does anyone know how they did that?
I've seen other sites do this as well (without appending an ?error=1 to the end of the URL).
Thanks in advance.