Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions examples/login_session/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#include <chrono>
using namespace drogon;
using namespace std::chrono_literals;

// NOTE: If you are getting a segmentation fault when
// enabling these routes make sure to call .enableSession(24h)
// on app().
int main()
{
app().registerHandler(
Expand Down Expand Up @@ -65,4 +67,4 @@ int main()
.enableSession(24h)
.addListener("127.0.0.1", 8848)
.run();
}
}