AkaZn
asked on
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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 :)
Thanks for the A :)
ASKER
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.