hello i have been trying to create a script which logins into a php webpage that requires to login first and then continue but i cant make the cookie to work.
page output is like that:

HTTP/1.1 200 OK
Date: Mon, 20 Feb 2006 13:52:11 GMT
Server: Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.7e PHP/4.4.0 FrontPage/5.0.2.2510
X-Powered-By: PHP/4.4.0
Set-Cookie: PHPSESSID=066a9ff4efb87945b73542a2201a4d62; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: text/html

am saving the 066a9ff4efb87945b73542a2201a4d62 as the %cookie and using it later like this:

sockwrite -n $sockname Cookie: %cookie $+ ;

but the page saying am not logged in.

any help would be thankful