Skip to content

Unexpected SessionCloseStatus Occurred During Login #1612

@Yannet11

Description

@Yannet11

Scenario 1
When modifying the official demo to allow only one user login:
After the user successfully logs in on Page A, they then log in with the same account on Page B, and the login on Page B succeeds.
However, the returned closeStatus is 500 (DISCONNECTED_BY_CLIENT), whereas this scenario should return 501 (DISCONNECTED_BY_OTHER_DEVICE).
场景一:
修改官方demo,只登录一个用户。
页面A中用户登录成功后,再通过页面B登录该用户,B页面成功登录。
但返回的closeStatus为500(当前用户主动请求关闭会话),我认为该场景应该返回501(由于当前用户的其他设备上线,导致当前会话关闭)。
Image

Scenario 2
When using the official demo with an additional "Logout" button added:
When the user clicks this button on the page, the returned closeStatus is 300 (CONNECTION_CLOSED). Shouldn’t it return 500 (DISCONNECTED_BY_CLIENT) instead?

场景二:
同样使用官方demo,增加退出登录按钮。
页面点击该按钮时,返回的closeStatus为300(CONNECTION_CLOSED),不应该返回
500(DISCONNECTED_BY_CLIENT)吗?

Image Image

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