CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:


New User

Oct 26, 2012, 4:59 AM

Post #1 of 2 (3482 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;

file => "cookies.txt",
autosave => 1,
ignore_discard => 1,

How do I then reload the cookie to keep it logged in on my next request?




Oct 30, 2012, 1:11 PM

Post #2 of 2 (3442 views)
Re: [neil4636] WWW::Mechanize [In reply to] Can't Post

it could be because cookies are set with an expire time so they are expiring... y not login and then logout when need to check what ever it may be.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives