url参数变更后再次鉴权;hls播放鉴权提到httpsession类中实现

This commit is contained in:
xiongziliang
2019-06-14 15:19:02 +08:00
parent e365824be2
commit cfbdda0698
7 changed files with 120 additions and 118 deletions

View File

@@ -173,6 +173,17 @@ HttpServerCookie::Ptr HttpCookieManager::getCookie(const string &cookie_name,con
return HttpCookieManager::Instance().getCookie(cookie_name , cookie);
}
HttpServerCookie::Ptr HttpCookieManager::getCookieByUid(const string &cookie_name,const string &uid){
if(cookie_name.empty() || uid.empty()){
return nullptr;
}
auto cookie = getOldestCookie(cookie_name,uid);
if(cookie.empty()){
return nullptr;
}
return getCookie(cookie_name,cookie);
}
bool HttpCookieManager::delCookie(const HttpServerCookie::Ptr &cookie) {
if(!cookie){
return false;