Welcome Guest, Not a member yet? Register   Sign In
i dont want user to be loged in more than one machine at same time
#1

Well I do not know how to call this I need

I have a database project mounted on codeigniter now I only have an user named "admin"
I login on the server with mi admin user and everything is fine I can do what I need

but then i go to another pc and also login with "admin" and that log in

so now i have the admin account open on two different pc
no warnings are display and no option to close the account opened in the other pc(server) is avaliable


I need to restrict the user to only be able to login on a single computer at the same time
if you login on a computer already having an open session in another computer
the previous session must close automatically
or at least advise there is already an open session in other pc

is there an opcion or workaround in codeigniter way you could not login in multiplex machines at same time
remotely close sesions or autoclose them

how do you call this kind of login configuration?

Sorry about the google translator
english is not mi native languague but spanish
Thank you for reading
Reply
#2

I need to restrict the user to only be able to login on a single computer at the same time
if you login on a computer already having an open session in another computer
the previous session must close automatically
or at least advise there is already an open session in other pc



->Make new table for tbl_user_loggin (Fields->id, add_date, ip_address, User_id, loggin_time,)
->When user trying to loggin than firstly you need to add new record in tbl_user_loggin with ip address. and with time.

->Than if anyone user trying to loggin over the site you need to check any one record are availble or not in tbl_user_loggin table with time.
If user already availble than you can show error message "You are not able to access this service because another user access this"

->If user logout than you need to delete record with ip_address
Reply
#3

Log and check the users IP Address.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB