session & users number

13 views
Skip to first unread message

amka...@gmail.com

unread,
May 1, 2017, 3:24:36 PM5/1/17
to Mojolicious
Hi,

Does please someone know how to forbid more than 1 user for a mojolicious session ?

Thanks   :)

Stefan Adams

unread,
May 1, 2017, 9:09:23 PM5/1/17
to mojolicious

On Mon, May 1, 2017 at 2:24 PM, <amka...@gmail.com> wrote:
Does please someone know how to forbid more than 1 user for a mojolicious session ?

You might store a special key in the session when the user logs in, and store it on the server as well.  Then when user two tries to login the server will see that a key already exists and not allow the second login attempt.
Reply all
Reply to author
Forward
0 new messages