Function sessionId

Synopsis

#include <lib/inc/drogon/Session.h>

std::string sessionId() const

Description

Get the session ID of the current session.

Source

Lines 206-210 in lib/inc/drogon/Session.h.

std::string sessionId() const
{
    std::lock_guard<std::mutex> lck(mutex_);
    return sessionId_;
}





Add Discussion as Guest

Log in