Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

BrownieCoffee's avatar

generate token for URL for edition

Hi guys,

I would like generate securised URL for edition of post and user profil.

to know to is it a good idea and/or best practice to save token in database to use them in url after that.

I attempt to save token in session but the token not saved permanently.

Thank you for you help. S.U.+

0 likes
2 replies
BrownieCoffee's avatar
BrownieCoffee
OP
Best Answer
Level 2

@mostafa_kh Thank but I already read this solution and it didn't works for my case.

I have save un BDD tokens for that

Please or to participate in this conversation.