Bug 450583: Wrong session returned if more apps use same session name

Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>