How do I disallow expired user account from accessing a page? RRS feed

  • Question

  • User-2074858223 posted
    I have a web page were anyone can register and login, but to make use of sales page the user must subscribe and the transaction ID will be sent to the user . My challenge is how do I disallow any user whose account or transaction ID has expired from gaining access to the sales page.
    Sunday, December 14, 2014 11:50 AM

All replies

  • User-574293449 posted

    hi friend,

       How you identify transaction ID is expired? Any expire date or duration something like that in DB. Then when the user login with transaction ID verify the expire date and allow only with in the expire date

    Sunday, December 14, 2014 11:11 PM
  • User-2074858223 posted

    Please any example code on that
    Monday, December 15, 2014 2:56 AM
  • User-574293449 posted

    hi that is an idea. Your profile table have transaction ID. am i right? So add one more column ExpireDate and add the expire date when you add transaction ID. Each time you check with transaction ID with this table. correct? In the same validation also verify the Expire date is less than current date. If so transaction ID is expired. I think you got my point

    Monday, December 15, 2014 3:53 AM
  • User-2074858223 posted
    Do you have an example on this explanation?
    Monday, December 15, 2014 5:20 AM
  • User2053451246 posted

    Do you have an example on this explanation?

    You have not posted any code.  What is your table setup that stores who owns the record? How do we figure out if it's expired?

    Saturday, December 20, 2014 3:57 AM