how to persist the currently selected tab on page reload

how to persist the currently selected tab on page reload


Hi
I'm using the jquery UI tabs for an interface that requires refreshing
in order to redraw a graph. Each time the page refreshed the 1st tab
is always displayed even if the 2nd or third tab was opened when the
page was refreshed. I would like the page to "remember" which tab was
open so that when refreshed it always displays the same tab as
immediately before the page was refreshed.
any help greatly appreciated, thanks