mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-06 17:51:36 +02:00
Reword a comment.
This commit is contained in:
parent
2a2b3a6d60
commit
0b8dcea37a
@ -117,14 +117,14 @@ void SessionManager::session_setup_middleware(Object *instance, Request *request
|
|||||||
const std::string &sid = request->get_cookie("session_id");
|
const std::string &sid = request->get_cookie("session_id");
|
||||||
|
|
||||||
if (sid == "") {
|
if (sid == "") {
|
||||||
//You could create a session here if you want to always have sessions
|
//You could create a session here if you want to always assign sessions to visitors.
|
||||||
//Example code:
|
//Example code:
|
||||||
//HTTPSession *session = SessionManager::get_singleton()->create_session();
|
//HTTPSession *session = SessionManager::get_singleton()->create_session();
|
||||||
//request->session = session;
|
//request->session = session;
|
||||||
//request->add_cookie(::Cookie("session_id", session->session_id));
|
//request->add_cookie(::Cookie("session_id", session->session_id));
|
||||||
|
|
||||||
request->next_stage();
|
request->next_stage();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user