Skip to content

Feature Request: session event hooks #200

Description

@RobiFerentz

Please please PLEASE add event hooks for session start, session end and anything else you can think of that happens on the session scope.

Activity

  1. bnoordhuis commented on Dec 23, 2014

    @bnoordhuis
    Member

    I don't understand what you mean. What session scope?

  2. RobiFerentz commented on Dec 23, 2014

    @RobiFerentz
    Author

    Other server side languages have session events you can use like session_start, session_end etc. It would be nice to have in node/io too.
    Expressjs does not supply such events as far as I know. You can set up some session data, but you can't really do anything complex there.

  3. bnoordhuis commented on Dec 23, 2014

    @bnoordhuis
    Member

    Core doesn't have a concept of sessions, that's left to higher-level frameworks like express, hapi, loopback, etc. Core only deals with requests and connections. Sorry, I'm going to close this issue; it's out of scope, no pun intended.

  4. RobiFerentz commented on Dec 23, 2014

    @RobiFerentz
    Author

    Well, then it's pretty crappy that none of them seem to actually have this functionality as far as I know.

  5. jakubkeller commented on Dec 23, 2014

    @jakubkeller

    This could even be better implemented as extension for those mentioned
    frameworks or as a custom module if really needed.

    On 7:31AM, Tue, Dec 23, 2014 Robert Ferentz notifications@github.com
    wrote:

    Well, then it's pretty crappy that none of them seem to actually have this
    functionality as far as I know.

    —
    Reply to this email directly or view it on GitHub
    #200 (comment).

  6. aredridel commented on Dec 23, 2014

    @aredridel
    Contributor

    Yeah. Should actually be trivial to implement in express, depending on what you mean by session end, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions