how to get the user currently log on other computer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xxoulmate
    New Member
    • May 2007
    • 77

    #1

    how to get the user currently log on other computer

    how could i get the user currently logged on the other computer.,
    what do i need to get for it,.


    wat is the a way for it.,
  • jrtox
    New Member
    • Sep 2007
    • 89

    #2
    Originally posted by xxoulmate
    how could i get the user currently logged on the other computer.,
    what do i need to get for it,.


    wat is the a way for it.,
    Hello,
    I do made a Program that run on the network, my approached to your question is simple.

    1. On my database i have a table for Login an the fields for instance are Username(dataty pe "text"), Password(dataty pe "text"), and Loged(datatype "yes/no").
    2. the field "Loged" is to be checked when the USERLogged for that Particular username and password. and when [ANOTHER USER used the same username and password then a msgbox told that "another user has login with this account". the second user with the same username and password can't login because that particular account was used, in that way you can determined now that somebodu uses uses your account.
    3. when the user has log-off the program then the field "Loged" now is to be unchecked.

    Regards
    Ervin

    Comment

    • xxoulmate
      New Member
      • May 2007
      • 77

      #3
      without putting a records on the tables on access.,
      how could it retrieve the user currently logged on other computer.,

      Comment

      • jrtox
        New Member
        • Sep 2007
        • 89

        #4
        Originally posted by xxoulmate
        without putting a records on the tables on access.,
        how could it retrieve the user currently logged on other computer.,
        you can declare a global variable for every particular user.

        Ervin
        tnx

        Comment

        • MikeTheBike
          Recognized Expert Contributor
          • Jun 2007
          • 640

          #5
          Hi

          Does THIS Help

          MTB

          Comment

          • Ariharan
            New Member
            • Aug 2007
            • 20

            #6
            Just simple...

            1.When a user is trying to login pls check the in database whether the username is available in Database.
            2.If username is not available display a message "Invalid User" and go to step1
            3.If username is available then check whether the Logged field of particular record is No
            4.If the logged field of particular user is No You can proceed your work.
            5.If the logged filed of that particular user is Yes display a message "Already Logged in..Try a different user " and goto step1

            I hope this will work good...I need ur reply at s.ariharan@yaho o.co.in

            Comment

            • Ariharan
              New Member
              • Aug 2007
              • 20

              #7
              For logoff just do this

              When a user presses the logout button, search for the user in the database and make the Loged field to No

              Comment

              • xxoulmate
                New Member
                • May 2007
                • 77

                #8
                I have read an article that it can retrieve the user currently logged on other computer.,
                but the problem is the OS restrictions.,
                it doesnt support the OS 98.,

                it uses the api NetUserGetInfo( )

                this is the site of the article i have read.,
                http://vbnet.mvps.org/index.html?code/network/netusergetinfo. htm

                is there any api that can be used in OS 98 for to retrieve users info on other computers.,

                Comment

                Working...