You may try this method ...
if session(aVar)=0 or session(aVar)=""
SET session(aVar)=1
EMBEDD refresh meta tag to php script
end if
As you can see its not an actual code but will pretty much give you the idea on how the 1-time refresh thing would work.
Hope it helps!