I have a question about security. I have a website using an URL like that:
www.mysite.com/product?id=4
On the server side, I check of course if the product id=4 exists AND if the connected user has the right permission to see this page for this product. If not the user gets the error "not authorized".
My problem is the id=4 is the primary key of my table. And I wonder if it is a good idea that this primary key appears in clear in the url.
Perhaps that
www.mysite.com/product?id=45t6yHYU431azeFgThu78n
is better? Is it better to transform these parameters in the address bar? Or not necessary if the security is managed correctly on the server side ?