in reply to how to refresh a page immediately

You probably need to expire the first cookie first, and then set a new cookie. This would require two pages to be sent.

A page can be refreshed immediately with a http field called 'refresh' which is also avaliable as HTML http-equiv.