This topic is locked

Terms for Access

5/23/2007 6:55:59 PM
ASPRunnerPro General questions
J
jawendell author

I would like to have a page that displays terms for access to the database. If the user agrees to those terms, the user will be granted access. If they don't agree to the terms, they will be redirected elsewhere. I am currently doing this by starting on a separate html page. If the user agress to the terms on the page, the user is directed to the login page. I would like to do this within the application. I know I can use a before login event to send the user to the separate page, but if the user agrees to the terms on the page, how do I direct him back to the login page. So that the user is not asked to agree to the terms every time, I believe I will need to store a value in a table indicating ageement, and check that value each time to see if that user has already agreed. If they have already agreed, then I want to proceed directly to the login page. I don't know that much about ASP programming, that is why I have to ask this question. Any suggestions would be appreciated.
Thanks,
Jerome A. Wendell

J
Jane 5/24/2007

Jerome,
I think you can do the following:

  • create separate page with terms and two buttons: Agree and Disagree.
  • redirect to the Login page if user click on the Agree button. Otherwise redirect to another page.

J
jawendell author 5/24/2007

Thanks for your reply.
I have setup the separate page, and redirect to it using a before login event. The separate page, of course, is opened after the username and password have been entered and the submit button pressed. Once the user agress to the terms, I want to write the username to a table in the database with the date. I have been able to write the date to the table, but have not been able to capture the username. How can I capture the username from the separate page?
I am doing it this way so that once the user agrees to the terms, he is not asked to agree every time he logs in.
Thanks,
Jerome A. Wendell

Sergey Kornilov admin 5/24/2007

Answered to your personal email.