Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 380647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:00:34+00:00 2026-05-12T15:00:34+00:00

This question has problably been asked before, but it seems like I can’t phrase

  • 0

This question has problably been asked before, but it seems like I can’t phrase my search correctly enough to find the answer.

Normally when you sign up to get access to a forum on the internet, an authorisation email is sent to you and you can click a link which leads you to a page which performs the authorisation.

What I want is to send a mail to an already created user (not logged in though), and let them accept a proposal by clicking on a link in the mail. The link ofcourse points to a page which performs the database operations and show some kind of result.

Which techniques and/or route should I take to implement this? And since this is security related, what should I watch out for?

Kind regards, Casper

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:00:34+00:00Added an answer on May 12, 2026 at 3:00 pm

    When you send the email, generate a big random string and store it in a table with their user ID and some indication of what the link is going to do.

    Then send them the email with a link to DoSomething.aspx?id=long_string_here.

    Write DoSomething.aspx so that it looks up the long string and presents the user with a confirmation of what they will do and a button to do it. No logging in required. You could even leave the user logged in, if you want.

    After the action is complete, or every X days, delete the string from the table.

    Concerns:

    1. Bad people may try hitting your page with random strings. If your strings are long enough and random enough, this won’t matter, but you may want to throttle access to the page or prevent more than X requests from an IP address in an given period.
    2. Aggressive spam-checkers may follow the link from the body of the email. Make sure that no operation is performed simply by accessing the page; the user should have to click a button or otherwise cause a POST.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question has been asked before ( link ) but I have slightly different
I know this question has been asked before, but I ran into a problem.
I know this question has been asked a bit before. But looking around I
This is a question which has been asked before ( large-text-and-images-in-sql ) but mainly
This has probably been asked before, but a quick search only brought up the
This has probably been asked before on SO, but I was unable to find
I know that the question has been asked before , but it's been two
If this question has already been asked I appologies, please point me in the
Preamble So, this question has already been answered, but as it was my first
This is probably a silly question, but curiosity has gotten the better of me.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.