I'm using PHP, I wanted to know if a user lands on a certain page, and they have to login or signup to be able to do actions like commenting or rating etc. I wanted to able to take the user back to that same page after they login.
I was thinking to use the PHP get function and pass the URL, I'm not sure that's the best way to do it.