Login by Socket

In example. the server has a script, check if user has loged in or not by their Session ID (when somebody login, their Session ID will be store in the DB).

I have written a script that use Socket (POST) to Login, and right afterward, I want to GET the data. But, right after I close the POST (use to login) socket connection, my script's Session ID change. So I can't GET the data.

Anyone can help me, how can I keep my script's Session ID after it loged in to read information.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AkaZnAuthor Commented:
2 days, and still no comment??

I think it's like what the browser use. When you visit some page with your browser, your Session ID doesn't change, until you close the browser. I want my socket connection have the ability to keep the Session ID like that.
I would suggest you use the snoopy class: http://sourceforge.net/projects/snoopy/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AkaZnAuthor Commented:
A perfect solutions. It works now. Thank you nicholassolutions.
No problem -- I'm glad it worked. Snoopy is a really neat tool.
Thanks for the A :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.