fafhrd91 / pyramid_sockjs

44 stars 13 forks source link

When custom session_manager argument is included, custom session is ignored #16

Closed thapar closed 11 years ago

thapar commented 11 years ago

With this single file app: https://gist.github.com/4211873 along with the relevant template (from your chat example: https://github.com/fafhrd91/pyramid_sockjs/blob/master/examples/chat.pt ), when line 29 is commented out, and line 30 is uncommented, the custom session I created (EchoSession) is not run. Instead, pyramid_sockjs's session from site-packages is run.

Why does this happen and how can this be corrected?

thapar commented 11 years ago

My error, I left out the session=EchoSession argument within session_manager=EchoSessionManager()