Guest_imported
New member
- Jan 1, 1970
- 0
I am attempting to place 4 cookies on the hard drive of users that access my script, and am using the following code :
print "Set-Cookie: CoordC=$FormData{'Login_CoordC'}; expires=Mon, 6-Feb-2045 00:00:00 GMT; domain=trt.tibsun.com\n";
print "Set-Cookie: CoordG=$FormData{'Login_CoordG'}; expires=Mon, 6-Feb-2045 00:00:00 GMT; domain=trt.tibsun.com\n";
print "Set-Cookie: CoordP=$FormData{'Login_CoordP'}; expires=Mon, 6-Feb-2045 00:00:00 GMT; domain=trt.tibsun.com\n";
print "Set-Cookie: Password=$FormData{'Login_Password'}; expires=Mon, 6-Feb-2045 00:00:00 GMT; domain=trt.tibsun.com\n";
Each of the variables stands for something so dont worry about that. However I have some questions :
1) Internet Explorer 5.0 is making them all into one file in my C:\WINDOWS\Cookies directory. Should it be doing this?
2) It wont work. I can access the "CoordC" variables, but all of the other ones are not working, and I can not access them from the script that needs to access the information in these cookies.
Please help.
print "Set-Cookie: CoordC=$FormData{'Login_CoordC'}; expires=Mon, 6-Feb-2045 00:00:00 GMT; domain=trt.tibsun.com\n";
print "Set-Cookie: CoordG=$FormData{'Login_CoordG'}; expires=Mon, 6-Feb-2045 00:00:00 GMT; domain=trt.tibsun.com\n";
print "Set-Cookie: CoordP=$FormData{'Login_CoordP'}; expires=Mon, 6-Feb-2045 00:00:00 GMT; domain=trt.tibsun.com\n";
print "Set-Cookie: Password=$FormData{'Login_Password'}; expires=Mon, 6-Feb-2045 00:00:00 GMT; domain=trt.tibsun.com\n";
Each of the variables stands for something so dont worry about that. However I have some questions :
1) Internet Explorer 5.0 is making them all into one file in my C:\WINDOWS\Cookies directory. Should it be doing this?
2) It wont work. I can access the "CoordC" variables, but all of the other ones are not working, and I can not access them from the script that needs to access the information in these cookies.
Please help.