Hi,
I am having a issue currently with getting segfaults when attempting to access sessions.
The current code is
class AuthenicateService{
private SessionVar!(AuthSess, "AuthSess") authSess;
@path("/login") @method(HTTPMethod.GET)
void GetLogin(){
auto auth = authSess;
if(auth.isValid) //segfault
redirect("/dashboard");
render!("login.index.jade", auth);
}
}
I do not know why it does this. In the example, there is no segfault and it points to the line thats currently commented. The other way would just adding the param for the sessions directly.