return to the comment page after login
<p>Sorry if I didn't show you the code because I have no idea how to implement it. I just want to know that for instance in YouTube, when you want to make comment on the video, you have to login in, so how to redirect you to the previous video page that you want to make comment. I suppose I need to store the url of the previous page into a session, but if the user didn't login, can I still keep track of the url, Sorry for my confusion. I want to do it in php, can anyone help me with it, thanks in advance:)</p>
