asp.net - Time sensitive webpage access -


Is it possible to create a page that redirects to a personal page if the right time sensitive variable is passed?

Ex:

The code value is a year-month-day-time combination which comes from the window of time (15 minutes, 30 minutes etc.) depending on the time of the server. needed.

The absence code will parse the code code and will redirect to a personal page (using an obscure URL with code variable) if the code is valid or displays 404.

Usage scenario:

  • The party has a desire to show Party B a personal page.
  • Sends a link to AB which is valid for the next 30 minutes.
  • Clicks the B link and is redirected to a private page.
  • After clicking on the link, a 404 is produced after 31 minutes and the refresh / postback of the personal page also produces 404.

Thanks

Yes

one The way is to connect "valid start time" with a personal string that is known to the server. Generate code based on that concatenated value (e.g., MD5 hash). Send "valid start time" and the hash back to the customer. They pass both back to see the page. The server reconnects the "valid start time" with the secret key, reconnects the hash, and ensures that the hash corresponds to the hash. If it matches, make sure the redirect is still valid to compare server time with pass-time.

There is no need for a valid key database and what time frame is associated with this approach. You can also add a page name to the redirect to make the system completely self-reliant.

  Server compilation: hash = MD5 ("2009-12-12 10:30:00" + "MyPage.aspx" + secret key) Send to customer: "2009-12- 12 10:30:00 "+" MyPage.aspx ", the hash client later sends the server" 12-12-12-12 10:30:00 "+" MyPage.aspx ", hash server hash hash = MD5 (" 2009-12-12 10:30:00 "+" MyPage.aspx "+ secret key) hash == newHash? Yes and redirect within the window of time, other error.  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -