mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-15 20:45:57 +08:00
url参数变更后再次鉴权;hls播放鉴权提到httpsession类中实现
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user