• 1. Atletika

    • Královna sportu
    • Nejvšestranější sport. odvětví
    • Pohybový základ sportů
    • Více...
  • 2. Badminton

    • Kolektivní síťová hra
    • Rychlost a dynamika
    • Rekreační sport
    • Více...
  • 3. Běžecké lyžování

    • Nejnáročnější sport
    • Všestranný rozvoj těla
    • Zimní krajina na lyžích
    • Více...
  • 4. Florbal

    • Nejvíce se rozvíjející hra
    • Nejoblíbenější školní sport
    • Týmová hra podobná hokeji
    • Více...
Naše sporty

Friday, 27.December 2024, 13:15

Poslední aktualizace08:22:20 AM GMT

Add Announcement Here

simulate one-time link with token expiration

simulate one-time link with token expiration

I'm looking for a very basic way to generate something similar to the one-time password recovery link, but for a different application. Currently, I have a rule config'd so that when I add a particular role to a user, a notification is dispatched to the user with a link that allows them to create a new content-type on the site. The problem is that I don't want this static link to be lingering out there for users to be able to pass around and keep regenerating said content-types. I want this link to contain some sort of token that will expire within, say, 24 hrs. It doesn't have to be incredibly elaborate. It's mostly a deterrent to prevent the static link from being abused. I was thinking I could set some kind of server-side cookie that expires in 24 hrs, which would contain a random generated string. Then I could just do something like http://www.mysite.com/?q=path-to-create … amp;token=[some-random-value-that-expires], but I don't even know where to start.

Any help is much appreciated!

Guest
Guest
useravatar
Offline
Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
2896
Total Polls:
0
Total Posts:
23
Dormant:
User Info:
 
Total Users:
52
Newest User:
Name
Members Online:
0
Guests Online:
806

Online: 
There are no members online

Forum Legend:

 Topic
 Nový
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked
loga-eu
Nacházíte se zde: Support Post installation simulate one-time link with token expiration