fix(session): correct cookie session path (refs #5051)

Correct cookie session path for direct directory url