I am working on creating a single session for a user. For example: Let's say user "admin" is logged in, then no other device connected on LAN or wireless can log in again with any login details.
My findings and what I crawled on this forum:
I can see all sessions are stored in the session object so I can get rpc_session_id's for logged-in users from there and know if more than one session exists. Now what I want is if a user is already logged in, then any other who is trying to log in gets a prompt that a user is already logged in and he gets two buttons one is reboot and other is logout other user.
Any help will be appreciated or if I need to change my approach? Maybe if I could figure out the reboot thing, then I can implement the other option as well with similar approach.
should be able to copy the content of http://ro.ut.er.IP/cgi-bin/luci/admin/system/reboot ?