in reply to Re: keep a user signed in
in thread keep a user signed in

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?

Replies are listed 'Best First'.
Re^3: keep a user signed in
by GrandFather (Saint) on Nov 13, 2005 at 22:48 UTC
    OP: ... and it's really hard to log into during the day. It would be easier to have a script on my web site log in and keep the account active until I can come back during the night ... .

    That strongly implies to me that it is a site which allows a limited number of logins (presumably to avoid clobbering the server) - hence the strong reaction. I guess OP could reply and tell us I am wrong, in which case I will have earned any -- I get. :)

    If OP's story is really good I'll even appologise, ++ the reply and point OP at a suitable module.


    Perl is Huffman encoded by design.
      It's not to log into a site that has limited log ins, it's to log in and keep my account fresh and active. The web site appears to have more than one server and depending on the hour of the day, the server that executes logins is very slow and can often times timeout a number of times before it'll let you through.

      Once you're logged in, everything is fine. So if my account was already logged in, I'd never have to worry about not being able to login again.

        Have you tried complaining to the webmaster? ;-)

        Sometimes technical problems can be solved easier with social answers. Like communication. After all, you're probably not the only person having this login problem.

        I'm not convinced. That behaviour is completely symptomatic of a site that limits logins. However, take a look at WWW::Mechanize.


        Perl is Huffman encoded by design.