What is the best way to create a variable that is accessed by the different views of my module (block, page etc), but that is destroyed at every new page request?
I've been using
variable_set to store information that is used throughout my module, but this seems to persist across page requests. Is there a hook I can implement to call
variable_del for every outgoing page, or is there a better way of storing variables in my module that do not persist across page loads?