
neil4636
New User
Oct 26, 2012, 4:59 AM
Post #1 of 2
(980 views)
|
|
WWW::Mechanize
|
Can't Post
|
|
Hi all, First of all i'd like to say hi to the community as this is my first post! My problem is with "WWW::Mechanize" The script I am programming basically checks a site every 30 mins to see if anyone has added a entry, if the entry exists then I need the script to automatically update the entry and change one of the fields to "NOT AUTH". The problem I am having is staying logged in, when I redirect to the "correction" page I am logged out again... The site uses cookies, If I disable cookies on my browser it fails to login. My question is, when I store the cookie on initial login using the following code;
$bot->cookie_jar( HTTP::Cookies->new( file => "cookies.txt", autosave => 1, ignore_discard => 1, ) ); How do I then reload the cookie to keep it logged in on my next request? Cheers, Neil.
|