Refresh after login dojo dialog

Hi There,

I have created the dojo login prompt as per the instructions on the following site :

It is all nearly working - which is great, but I would like its not refreshing the page after a sucessful login. I have to press F5, then the ‘logout’ link appears.

Does anyone know how to refresh the page after the successful login?

Thanks

Jamie