Fixed per-tty session support