Forefront UAG Custom changes trough Registry

I had to edit time out for login page from the default 4 minutes to 15 minutes.
From TechNet there are some keys you cannot manage trough the console and only by registry. Find here all the registry keys.

I changed the values and did a iisreset. And it all worked as a charm.
One nasty thing what isn’t written that after a reboot the change has gone.
I was applying patches and had to restart after the installation. As I combined these changes together I decided to check the registry again, and my change was gone??

When you add the registry settings to the register, open the UAG console, Save the changes and then Activate them. Now when you reboot your server the changes remain in the registry!