Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: One User login at time in perl cgi

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

in reply to One User login at time in perl cgi

This is the logic
if( firstToLogIn(...) ){ youTheBossNow(...) } else { soSorryOnlyOnePegInHole(...); }
Details at Highlander: one instance at a time (Oct 00)

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


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

      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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-10-24 22:39 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (310 votes). Check out past polls.