login sleep
Posted: Tue Oct 22, 2002 1:23 pm
I was reading in the php manual about the sleep() function and people were talking about using it for login... how does that work exactly? Where would i use it?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
lol, yeah, i was curious about a little more in depth about how i would implement this in the login processZoram wrote:I was reading in the php manual about the sleep() function and people were talking about using it for login... how does that work exactly? Where would i use it?
Code: Select all
<?php
sleep(1);
if (checkLogin($_POSTї'login'], $_POSTї'pass'])
loggedIn();
else
loginFailed();
...