X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Frest-api.c;h=dd5c59b9a4170bc48355e6601b62fbd6ad1ab01e;hb=d809e9b8fc03a0a08060034c6ddbd4b4c4176399;hp=0c44a43e19a59c9ee4b3af3c19347005d8aa9f1a;hpb=be2a72e7c9fdf339a89245c812b623985d70709c;p=src%2Fapp-framework-binder.git diff --git a/src/rest-api.c b/src/rest-api.c index 0c44a43e..dd5c59b9 100644 --- a/src/rest-api.c +++ b/src/rest-api.c @@ -508,8 +508,8 @@ ProcessApiCall: // client did not pass token on URI let's use cookies if ((!request->restfull) && (request->context != NULL)) { - char cookie[64]; - snprintf (cookie, sizeof (cookie), "%s=%s;path=/api;max-age=%d", COOKIE_NAME, request->uuid, request->config->cntxTimeout); + char cookie[256]; + snprintf (cookie, sizeof (cookie), "%s=%s;path=%s;max-age=%d", COOKIE_NAME, request->uuid, request->config->rootapi,request->config->cntxTimeout); MHD_add_response_header (webResponse, MHD_HTTP_HEADER_SET_COOKIE, cookie); }