I’m trying to reuse a SessionID from a cookie or generate a new cookie otherwise. I thought I could add this to the controller constructor function so all Action Methods would know what SessionID to use. However, the constructor’s Session object is null.
Would I have to decorate every Action Method entry point with code to check for an existing SessionID cookie?
The constructor is too early in the Controller lifecycle – it doesn’t know about Session yet. Override
Initialize()instead.