Failing to establish a session while trying to log into a website and opening the logged in page. : I am new to Perl, so as an exercise I have been trying to log in to a web page and open the logged in page later from the cmd line. This is the code which I wrote:

    use HTTP::Cookies;
    use lib "/home/tivo/Desktop/exp/WWW-Mechanize-1.80/lib/WWW";
    use Mechanize;
    $mech = WWW::Mechanize->new();
    $mech->cookie_jar(HTTP::Cookies->new());
    $url = "<url>";
    $mech->credentials('username' => 'password');
    $mech->get($url);
    $mech->save_content("logged_in.html");

After I execute the script, I try to open the saved html page using the command;

    $firefox logged_in.html

But I get the error;

**"BIG-IP can not find session information in the request. This can happen because your browser restarted after an add-on was installed. If this occurred, click the link below to continue. This can also happen because cookies are disabled in your browser. If so, enable cookies in your browser and start a new session."**

Thank you in advance.

The same code worked for facebook login.

