Save connection parameters in cookies

First quick 'n' dirty functions to store connections parameters in the
cookies. Should be improved.