- Messages
- 4,148
- Reaction score
- 5
- Points
- 38
Ok, I can send and recieve cookies via the browser using perl.
The user can go to many different pages in that browser and then rutrn to my script and the cookie data remains. But when the browser is closed or the user uses another instance of a browser the cookie is no longer.
The question I am asking is how can I save the cookie to the users machine for a later date?
When looking up default location for cookies, I am faced with differnet ones for different browsers. Does this mean that I must check the users browser and then act accordingly?
Internet Explorer
%userprofile%\Cookies\
%userprofile%\Local Settings\Temporary Internet Files\
FireFox
%userprofile%\Application Data\Mozilla\Firefox\Profiles\Default User\cookies.txt
Opera 8
%userprofile%\Application Data\Opera\Opera\profile\cookies.dat
Netscape Navigator 7
%userprofile%\Application Data\Mozilla\Profiles\profile name\cookies.txt
If not is there not an easier way of saving them?
Any help or comment would not go amiss.
Regards,
The user can go to many different pages in that browser and then rutrn to my script and the cookie data remains. But when the browser is closed or the user uses another instance of a browser the cookie is no longer.
The question I am asking is how can I save the cookie to the users machine for a later date?
When looking up default location for cookies, I am faced with differnet ones for different browsers. Does this mean that I must check the users browser and then act accordingly?
Internet Explorer
%userprofile%\Cookies\
%userprofile%\Local Settings\Temporary Internet Files\
FireFox
%userprofile%\Application Data\Mozilla\Firefox\Profiles\Default User\cookies.txt
Opera 8
%userprofile%\Application Data\Opera\Opera\profile\cookies.dat
Netscape Navigator 7
%userprofile%\Application Data\Mozilla\Profiles\profile name\cookies.txt
If not is there not an easier way of saving them?
Any help or comment would not go amiss.
Regards,
Last edited: