Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Best method for maintaining a session ID across multiple threads

by Gangabass (Vicar)
on Jul 11, 2013 at 03:32 UTC ( #1043623=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043623]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-07-30 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls