SessionVar.this

Initializes a session var with a constant value.

struct SessionVar(T, string name)
@safe
this

Examples

class MyService {
	SessionVar!(int, "someInt") m_someInt = 42;

	void index() {
		assert(m_someInt == 42);
	}
}

Meta