Expiry date problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Expiry date problem

I developed an app with expiry date but unfortunately user still used after expired the date using system date back. I need to solve this problem does anyone know the solution or any suggestion pliz tell me.

13th Jan 2018, 4:33 AM
Avatar
Avatar - avatar
8 Answers
+ 3
Thnx Bagshot! thnx spcan! my app is offline i cant used server or internet time
13th Jan 2018, 1:55 PM
Avatar
Avatar - avatar
+ 3
And is there any possibilities to my app nothing related to system date? somehow set the time on database or any method?
13th Jan 2018, 3:54 PM
Avatar
Avatar - avatar
+ 2
I think it might be work on my case big thnx #sneeze.
13th Jan 2018, 3:53 PM
Avatar
Avatar - avatar
+ 1
I don't know if this can help or not but here is it 😃 https://code.sololearn.com/cd6hB5y36wJg/?ref=app
14th Jan 2018, 11:14 PM
Rayen Jbahi
Rayen Jbahi - avatar
0
You could design an api that retrieves the correct date and time, and get your app to call the api as it starts up. WCF is one way of doing this, but you will need a server to host the api. Other than that, I'm not really sure of any other way that can't be easily hacked by users.
13th Jan 2018, 9:25 AM
Bagshot
Bagshot - avatar
0
Require internet connection to start the app. Then lookup the atomic time on an internet service (many pages do, even google i think) With this, the user cannot cheat the expire date.
13th Jan 2018, 1:41 PM
spcan
spcan - avatar
0
Save the date everytime when the program starts. Before you save this date check if the system date is more recent than the saved date. If this is not the case then it us not valid and some one changed it.
13th Jan 2018, 3:31 PM
sneeze
sneeze - avatar
0
You could work with a number, that is hided in the database. But you need some sort of tick system to define time, it does not necessarily mean seconds though. So than the user get x number of ticks and this number is lower every time a tick expires. Or may do not use tick but button-click. Than a user can use the app for x button-click and after that it does not work anymore. If you make the number high enough the app should work for a reasonable amount of time.
14th Jan 2018, 10:02 PM
sneeze
sneeze - avatar