Results 1 to 9 of 9

Thread: User login count

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Location
    London, England
    Posts
    213
    I have set up a user login system. Is there a way I can count the number of times a particular user logs in ?

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You'll need a database...

    then it's very easy.. just update the count field of the table when they login.

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I think the easiest way would be to use the registry to store/REtreive the number from the registry.
    Code:
    Dim x As Integer
    'REtreive on form load
    Private Sub Form_Load()
        x = GetSetting("MyProgram", "save", "x", 0)
    End Sub
    
    'Store when loged in
    Private Sub cmdLogin_Click()
        x = x + 1
        SaveSetting "MyProgram", "save", "x", x
    End Sub
    Gl,
    D!m
    Dim

  4. #4
    Fanatic Member Wen Lie's Avatar
    Join Date
    Jul 1999
    Location
    Singapore
    Posts
    524

    Cool

    Well...

    I agree with Monte96...
    To make you easier, just try to make a table for User Login nd Password, and of course, add a field for Counter...

    Cheers,
    Wen Lie
    Regards,
    [-w-]

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    This is not the type of info that should be written to the registry of the web server. It belongs in a database.

    [Edited by monte96 on 10-08-2000 at 01:00 AM]
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  6. #6
    New Member
    Join Date
    Sep 2000
    Location
    Belgium
    Posts
    8

    Wink

    Originally posted by monte96
    This is not the type of info that should be written to the registry of the web server. It belongs in a daabase.
    I don't think so either. By using the register a normal person can't manipulate the value.
    When you put it in an acces database, you can change the value in wathever you want.

    Sorry for my poor english!

  7. #7
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Well, that's not exactly why..

    Data stored in the registry should only be things such as settings for an application. A web app should never need to write to the registry for the most part. The point of putting it in a database is that it can then be displayed on a web page and easily tracked.

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  8. #8
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Chill guys...I thought he was talking about the logining into his application and not some online based server. If that's the case then a db is a good idea.

    D!m
    Dim

  9. #9
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    sorry d!m.. didn't mean to get so militant about it :c)

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width