Re: valid user

From: Date: Sun, 02 Jul 2000 14:22:26 +0000
Subject: Re: valid user
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4358@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 02.07.00 um 16:05 hat Bartosz Aninowski geschrieben: BA>Is possible to forbid that without using .htpasswd, htaccess (popup window) BA>or cookie? BA>I want user to go thru index.htmls and pass.htms everytime! Use sessions. You can use the php builtin session stuff, or - which too isn't very hard - program your own session handler: save the remote ip and a timestamp in a database, and on every access check if 1) the ip is in the table 2) if the session hasn't timed out yet (timestamp + 30min < now). Well, you get the idea, I hope. :) - -- MfG, Jonas Jochum commandline net services - ------------------------------------------------------------------------- tel: 07223-911794 | cmd:~ # Systemadministration, Netzwerkverwaltung fax: 07223-911795 | cmd:~ # Einrichtung von *BSD/Linux-Servern d2 : 0173-5712481 | cmd:~ # Datenbank/Internetprogrammierung jj@commandline.de | cmd:~ # Webdesign www.commandline.de | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (FreeBSD) Comment: Made with pgp4pine iEYEARECAAYFAjlfUCUACgkQF1ki3orczCDoAgCdEDcCdruAVDSSGXbYm1b20SZ+ kCsAnjPGCRjLHQQGYMkQI7eEF+65BdV1 =u7YW -----END PGP SIGNATURE-----

« previous php.general (#4358) next »