identifying dynamic pages (created by PHP from database)
===

Dear Friends God Bless you All

**Inase this question has been asked before just refer me to the answer and I shall be great ful.. its a very common problem however I have not been able to find solution form google**
 
I am developing a website in PHP using codeigniter. I have articles /Posts. these posts are located in a database and when ever a user demands to see an Article, all its relevant data is pulled from database using a unique "Content_id" and a page is presented to user dynamically. 
However once the data is dispatched to the view and an html page is created from that page I have no way of finding which "Content_id" was used in generating that page. Now in case user comments on that page i dont know which "content_id" to save in the comments table along with this comment so that next time when this article is displayed then all the relevant comments can also be displayed.

**some of the solutions that I thought are as follows**

1.  Can I use session to store this data? (However I am not using sessions for those users who are not logged in ...so can i use sessions for all users )
2.  Will using a form on the page with hidden fields be a viable option...
**can any one plz tell me how Wordpress or other CMS are handling this problem**
