Yes - you can use an LWP based application (i suggest using
WWW::Mechanize) to login and refresh the page every 10 minutes or so. You need to store the login cookies in your browser cookie store. This is either a text file in the case of Mozilla, Firefox etc. or an individual file in the cookies directory specified by Internet Explorer.
The LWP library has a number of Cookie Jar subclasses to support the main cookie store formats. The trick is to subclass the cookie jar to write out session cookies (that have no expiration time) such that they expire at some point in the future E.g. later today.
This is something that I do on from time to time to test an automated login for website indexing. I wouldn't suggest that you do this on a regular basis. Read the comments from the other monks about potential issues with this approach. You may wish to restate the problem so we can help you find a better solution.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.