Save data to a user session
<p>i am working on a online forum like where anybody whether registered or un-registered user can comment on a particular topic/article etc...</p>

<p>so, when the user (registered/un-registered) leave their comments we have a process for approving by admin which is behind the scene....</p>

<p>so my question is, when the user leave their comments then i want to hold on to their comments till their comments approved by admin or till the session is alive </p>

<p>the same user can leave one comment or many comments to a topic/article...
on the same page i will have different comments leave by other users which are approved by admin...</p>

<p>i would like to know what is the best way to handle?</p>

<p>example:</p>

<pre><code>[some topic here.........................
 ...................................................]

*comments:*

abc ............................... [pendign approval] //this data will be coming from session

xxxxxxxxxxxxxx......................[approved] //all the approved coming from db

aaaaaaaaaaaaaaaaaa..................[approved]
............
..................
.................
</code></pre>
