This topic is locked

One Time Log in

9/23/2006 2:30:36 PM
ASPRunnerPro General questions
A
ashumak author

I am trying to set up a survey page. We only want to allow users one time access to add there survey answers.
Any suggestions on how to do this?
Alan

Sergey Kornilov admin 9/25/2006

Add a field to the login table that holds number of logins. Make it 0 by default.
Add AfterSuccessfullLogin event where you increment this column by one.
Add BeforeLogin Event when you can check current number of attempts and only allow to login if number of attemps is NULL or 0.