Drug storage and dispensing devices for dispensing a drug dosage form to a patient are disclosed. The dispensing device has a programmable lock-out feature for locking the dispensing device and is capable of detecting the identity of a user. The invention further provides a method for the treatment of subject, by administering to the subject a drug dosage form using a dispensing device of the invention.