Results 1 to 2 of 2

Thread: Expires!

  1. #1
    Join Date
    Dec 1969

    Default Expires!

    I have a page where a user can submit his information.<BR>After he pushes the Add button a new row is created in the database.<BR>If a user presses the back button, the information is still there and he can add the same information again.<BR>I want to prevent that.<BR>I have tried in the Add method: Response.Expires = -1;<BR>But the information is still there.<BR>What do I have to do?

  2. #2
    Join Date
    Dec 1969

    Default RE: Expires!

    i had that problem with the refresh browser function. if someone posts something an he refreshs the page the data is insert again. you can prevent that by redirecting the user to an new page or the same page. so the foem data is lost except you pass it through the url. use post not get.<BR>or if you have a field that is unique then check it before the data is insert into the db f.e.an email address.<BR><BR>alex

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts