The ready PHP script controls access to web site via pin codes doing verification for code and establishing a session if the code is found from txt database.
Now I have a site with different directories and I wish to require OWN/UNIQUE pin code for each directory.
For example if the members area contains 10 different directories, the customer should be able to enter only one directory with the same pin code and if he wants to enter another directory, the new pin code should be required.
However the old pin should be valid for the irectory "from where" it was issued as long as it will be expired. I.e. if user have ordered multiple PIN codes, he should be able to enter those directories with corresponding pin codes.