STAG_UNIQ cookie

STAG_UNIQ cookie

有运行 apache 2.4.38 和 Caucho Resin 4.0.65 的 debian 系统。制作了一个简单的网页,显示所有请求数据,并观察到奇怪的 STAG_UNIQ cookie。哪个程序/模块负责设置它?在二进制文件和谷歌中都找不到它。

显示cookie的源代码:

@Override
protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException
{
    PrintWriter out = response.getWriter();
    response.setContentType("text/plain");
    response.setCharacterEncoding("UTF-8");
    out.println("\nCookies:");
    Cookie[] cookies = request.getCookies();
    for (int i = 0; cookies != null && i < cookies.length; i++)
    {
        out.println(cookies[i].getName() + " : " +
            cookies[i].getValue() + " : " +
            cookies[i].getDomain() + " : " +
            cookies[i].getPath() + " : " +
            cookies[i].getMaxAge());
    }
    out.close();
}

回复:

Cookies:
STAG_UNIQ : aaaDYHhTs_ZyhdYug95ox : null : null : -1
JSESSIONID : aaaCee5N8aEZpeZug95ox : null : null : -1

更新:看起来 cookie 仅由 Edge 设置。可能是 Edge 的功能?

相关内容