Receive login cookie?

Hi,

I’m trying to make login script with Flash:

  1. Send UserID and Password with POST to login page:
    mylogin.sendAndLoad(“http://site/login.asp”, result_lv, “POST”);
  2. Login.asp sets a cookie and redirects, but how to get that cookie in Flash?

Or how to manually set cookie with Flash?
(So that I could test autologin page that checks for valid cookie and then redirects)