php - How to give somebody a link to something that nobody else can have? -


usually when send link someones social profile ask create account see it. didn't want that, rather wanted give them link not indexed search engines , rather complicated guess person can see content on link, thinking like:

  www.domain.com/user/content/private/secured/90989834093/testcontent.php 

how achieve securely?

instead of doing that, can generate one-off random access token , use in querystring. token stored in database know if has been accessed or not. when page hit, token checked against database, , if still active content served.

as truth has commented below, work in conjunction session or cookie continue serve authenticated user page after access token has been used.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -