user login big/small problem :)
Posted: Sat Aug 31, 2002 9:11 am
Hi guys, This is my Big/small problem.
I can login to various directorys by putting the line below as the beggining line in the index.php of various directories, and so a user can login, i.e each directory has its own username and passwd.
this is the line
<?php
require '/path/to/_restrict.php';
?>
and the user will login.
But now what I want is to have amain page whereby all users access one page and each user is directed to his/her directory or page
so I create login.php
and I made it like this
<?php
require '/usr/local/apache/htdocs/users/_restrict.php';
if (isset($_SESSION['psau'])) {
header ('Location: http://server.com/'.$SESSION['psau']);
exit;
}
?>
but this has failed , can someone p;se help me
thanx
Eriuc
I can login to various directorys by putting the line below as the beggining line in the index.php of various directories, and so a user can login, i.e each directory has its own username and passwd.
this is the line
<?php
require '/path/to/_restrict.php';
?>
and the user will login.
But now what I want is to have amain page whereby all users access one page and each user is directed to his/her directory or page
so I create login.php
and I made it like this
<?php
require '/usr/local/apache/htdocs/users/_restrict.php';
if (isset($_SESSION['psau'])) {
header ('Location: http://server.com/'.$SESSION['psau']);
exit;
}
?>
but this has failed , can someone p;se help me
thanx
Eriuc