Simply use `mktemp`:

    cookies_file=`mktemp`