http://qs321.pair.com?node_id=1043623


in reply to Best method for maintaining a session ID across multiple threads

If you create your threads AFTER login when each thread will be logged in.
my $mech = WWW::Mechanize->new(); $mech->submit_form( with_fields => { login => "your_login", password => "your_password", }, ); my @threads = map { threads->create( \&create_thread, $_ ) } ( 1 .. $config->{number_of_threads} );
  • Comment on Re: Best method for maintaining a session ID across multiple threads
  • Download Code