Click here to Skip to main content
15,850,360 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all,

I have designed a vb.net windows application now I would like to give security to my application such as Multi user license.

For example if a user haves only 5 user license than he should be run the application only in 1 server + 4 network machine. When the 6th network machine use the application it should prompt user that "You have only 5 user license".

I need the list of network machine accessing the server application so that i can restrict network terminals.

Any idea how should i proceed it ?

Kindly assist on this.

Thanks.
Posted
Comments
Maciej Los 29-Sep-15 16:50pm    
Not much useful information...
Thava Rajan 30-Sep-15 0:53am    
is you application use sqlserver as backend?
or is your application is not use sqlserver?, this is purely a server client application , need some more information

1 solution

Please, read my comment to the question...

If you use sql server, you can save information about number of connections made to the server when application starts and delete such of information when application quits.

A table used to store loged in/out machines might look like (pseudo-SQL):
CSS
AppLogs
(
    NOLId -- Primary key 
    MachineIP -- machine IP 
    LogInTime  -- Log in date and time 
    LogOutTime  -- Log out date and time
)


Example query to check no. of loged machines:
SQL
SELECT COUNT(*)
FROM AppLogs
WHERE LogInTime = @currentDate AND LogOutTime IS NULL 


Got an idea?
 
Share this answer
 
Comments
Member 7942646 23-Oct-15 9:51am    
Thanks,

This will not work out. Since sometimes applications gets closed or crashed due to some error or system hang. User close the application from task manager.

The record still remain in the table.
Maciej Los 24-Oct-15 11:02am    
So, you have to inspect a programme and find out the reason of application's crash.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900