BenRussell
Programmer
PERL Programming
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.
I also made the scripts into .txt's so you can see for yourself :
- This file is the login script that sets the cookies
- This is the file that is supposed to display $Crumbs{'Password'} but for some reason no scripts will recognize these, but will only recognize the value of the first cookie, $Crumbs{'CoordC'}, and not the other 3
- This file contains subroutines and paths (in scalar form) etc. It contains the subroutine (VerifyCookie) that is supposed to parse the $ENV{'HTTP_COOKIE'} variable
PLEASE look at these and tell me what is wrong.
- Ben Russell
- President of Intracor Technologies (
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.
I also made the scripts into .txt's so you can see for yourself :
- This file is the login script that sets the cookies
- This is the file that is supposed to display $Crumbs{'Password'} but for some reason no scripts will recognize these, but will only recognize the value of the first cookie, $Crumbs{'CoordC'}, and not the other 3
- This file contains subroutines and paths (in scalar form) etc. It contains the subroutine (VerifyCookie) that is supposed to parse the $ENV{'HTTP_COOKIE'} variable
PLEASE look at these and tell me what is wrong.
- Ben Russell
- President of Intracor Technologies (