Logo Search packages:      
Sourcecode: jaminid version File versions  Download package

void com::prolixtech::jaminid::Response::setCookie ( String  name,
String  value,
String  path,
java.util.Date  expires 
) [inline]

sets a cookie

Parameters:
name the field name
value the field vaLUE
path the relevant path
expires the cookie activation day

Definition at line 90 of file Response.java.

References setHeaderLine().

Referenced by sendCookie15DG().

                                    {

        // "Set-Cookie:"

        String cookieVal = name + "=" + value + "; expires="
                + Connection.getGMTString(expires) + ";path=" + path + ";"; // domain=DOMAIN_NAME;
        // secure

        this.setHeaderLine(ProtocolResponseHeader.Set_Cookie, cookieVal);
    }


Generated by  Doxygen 1.6.0   Back to index