Thanks for your reply.
When the users logon to my site, I need to capture the sessionID that is issued by my IIS (after validating their username and password) to identify my user's valid session.
Could not get around to accessing the session id from a .pl script. So I wrote a .asp(vbscript) to capture the sessionid of a browser and a separate .pl program which gets the results of this .asp page.
But the trick is when I try to capture the results from the .asp page, the session id keeps changing. I need to get the session id that was issued to the .asp script.