Re: authentication
| From: | Gert Mellak | Date: | Mon, 27 Aug 2001 18:06:43 +0000 |
| Subject: | Re: authentication | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64668@lists.php.net to get a copy of this message | ||
hi!
I ever solve this problem with sessions... when a user does the login, I
have
session_start();
session_register("allowed");
$allowed = true;
and on the top of all the other sites, where just "special" users are
allowed to go in, there is a
include ("checkAllowed.php");
checkAllowed.php just contains:
if (!$allowed)
die ("Access denied");
I hope I could help you... if so - or if you have got questions, please feel
free to email me!
yours,
gert mellak
==================
eMail: gert@mellak.com
http://www.mellak.com
Wilbert Enserink <wilbert@pdd.nl> schrieb in im Newsbeitrag:
006601c12ef5$aff7c380$0301a8c0@168.1.1...
Hi all,
Can anybody help me with this authentication problem?
Clients can log in using a html form on my site. When they log in their
username and password are checked in a mysql database. Then they are
forwarded to a url, a directory on my site also coming from the db. This
directory should not be public of couse, so I did a chmod 744 on the clients
directory.
Anybody has any ideas? I prefer not to use the standard window popup thing
for authentication.
I checked the php manual, but there is not much info on plain html forms on
the subject, or maybe it is my English...:-)
Regards, Wilbert
-------------------------
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
info@pdd.nl
-------------------------