Book A is password protected and users must enter a password to read it. Book B is not password protected BUT I only want to allow users to read it if Book A is registered (has a correct password).
I'm thinking to do the following: When a user enters password in book A I create an .ini file with a specific parameter. When running book B I check if the .ini files exists and if the parameter is ok.
1. Is there any concerns if I do this?
2. I know that the Ans2000.ini stores the password of ebooks. But if I just check from book B to see if the password parameter entered for book A has any value, am I not take some risks as users can enter any info there, even if it's wrong?
I think your idea is good, but if you want to be a bit more secure you could use some kind of mathematical formula, etc based on the user id
e.g. Book A - after the password is entered, get the user id, do the math formula, and store into an INI
Book B - get the user id, do the math formula, and compare this to the value in the INI. If they are the same you're okay - if they're not, or there's nothing in the INI don't display whatever
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.