Is it possible to create a link that does not get saved to the browser history?
-
Many services provide links in transactional emails that automatically initiate an authenticated session using a code in the URI. The problem with this is that if user clicks "Log Out" but does not clear the browser history, another person can visit that authenticated link saved in the history and automatically be logged in again as the other user who had just previously logged out. Is it possible to craft a link that upon redirect to a URI without the authorization code embedded will save the URI to which the user was redirected in the browser history instead of the original URI with authorization code? Assume that you want to do this without invalidating the authentication code in the original email, so that a user can still follow that link later.
-
Answer:
One solution is make browser history irrelevant for the matter. For example I have your need too but I don't care if the link ends up in the history or not. I don't even care if the link gets copied (for whatever reason). I use rotative tokens in the login cookie to control who looks what. The way I did that for my SaaS was by making the link to locate the resource and show it only if: the login cookie was present and that cookie has the expected value in its rotative token. If the login cookie is absent the login page is presented (and the initial request parameters remembered), if the user enters the right user/password the application shows whatever that link pointed to (for example in this example it can be a private comment, a conversation, an estimate or a job). If the users logs out and you take that link in another computer: it will not have the right login cookie or it will have a hacked copy without the expected value in its token therefore, it will present the login page.
Sebastian Sastre at Quora Visit the source
Related Q & A:
- Is it possible to migrate Oracle SOA BPEL instances from one environment to another with history?Best solution by Server Fault
- Is it possible to create hidden service with django?Best solution by Tor
- Is it possible to create .vcf from a contact on Yahoo mail?Best solution by Yahoo! Answers
- My browser history won't delete, why?Best solution by Yahoo! Answers
- How do you get a link from a picture?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.