Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

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


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
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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-07-05 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls