Yes, which could be solved using a lookup table username <-> [session]

However, properly closing the session from ice is better. Since that's more
involved, I'll go ahead and merge this.
On 12 May 2013 17:51, "v5r" <notifications@github.com> wrote:

> In server/SessionImpl.cpp:
>
> > +    name = sdc::sdcHelper::getNameFromID(u.ID);
> > +
> > +  session sql(db_pool->getPool());
> > +
> > +  try {
> > +    sql << "DELETE FROM users WHERE id = :id", use(name);
> > +  }
> > +  catch(const soci_error &e) {
> > +    // assuming nothing else can go wrong
> > +    throw sdc::UserHandlingException("unknown ID");
> > +  }
> > +
> > +  // note: the user is not actually logged out, but they won't be able to store
> > +  // data on the server or login again (we'd have to _reliably_ disconnect the
> > +  // user otherwise, and Ice makes that slightly complicated)
> > +
>
> That's assuming we'll never be able to delete other users, of course.
> Also, this is not reliable, since AFAIK the user might more than one active
> session at a time.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sepm-depm/sepm-group/pull/13/files#r4185769>
> .
>