added function do delete cookies from client browser.

does not works properly yet, because we don't support the 'expires'
cookie parameter yet. :(
fixed memory leak