How to correlate dynamic values generated at client and same is sent to the server

Hi,
I am facing a problem in my current project,i have tried to create a ticket through lr script,it gets generated while recording and gives ticket number also,while replay it shows exception,i know that as ticket number is harded coded in scripts its throwing error i have tried to correlate it,but still i found many other dynamic values are being generated at run time and i find them in script and i dont find them in server response to correlate them and the script which i create today does nt work the next day throw 401 authentication required and checked responses through filder found the cookies and some url expire the next day,how to handle theese issue,please let me know,help me to resolve these issues,

Thanks,
Parveen