My guess is that, no, that's not quite what the OP wants to do. The OP's question seems to me to be one of keeping a login valid - usually this doesn't prevent anyone else from logging in. For example, just because I forget to close the fullpage CB window on perlmonks doesn't mean that you can't log in. But I will get continually updated cookies which keeps me from being logged out (if there was such a timeout scheme available).

The OP wants some way of doing that on a site that doesn't have an auto-refresh like the fullpage CB here, which means that the browser can't do it automatically (well, not easily - I'm sure that with some frames and javascript you may be able to pull it off).

What was mentioned in the CB at one point is the idea of an HTTP proxy. I don't even recall who mentioned it. Rather than going to the site, you go to the proxy. The proxy would be written with WWW::Mechanize for the continuous pinging of the server, and HTTP::Proxy for proxying (probably - maybe HTTP::Daemon, not sure), and something for cookie support. When the browser hits the proxy, the proxy returns back the cookie with the data.

Doesn't really sound like a lot of fun, and I'm just not sure why the OP can't just login at night - is the ability to log in only available while you're at work?


In reply to Re^2: keep a user signed in by Tanktalus
in thread keep a user signed in by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.