in reply to Re: One User login at time in perl cgi
in thread One User login at time in perl cgi

Hi,

Thanks for reply. I am not understood, your code, could u please little be elaborate?

  • Comment on Re^2: One User login at time in perl cgi

Replies are listed 'Best First'.
Re^3: One User login at time in perl cgi
by Anonymous Monk on Sep 06, 2011 at 15:06 UTC

    There is not a lot to it. What part of it is confusing?

    • The if statement? See if
    • The condition? That's just a flag that gives true if there are no other users logged in. Count the active logins to see what it should return.
    • Printing a normal page? Presumably you already do this.
    • Printing an error page? This is the same as a normal page, but with a different message.