Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: One User login at time in perl cgi

by Anonymous Monk
on Sep 06, 2011 at 15:06 UTC ( #924419=note: print w/ replies, xml ) Need Help??

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

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.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924419]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-02-13 22:44 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (449 votes), past polls