Topic: Logging in while in public area. (Read 1592 times)
Where are my glasses?
Posts: 22
176 credits Members referred : 0
« on: Sep 23, 2006, 03:06:55 am »
There are Public areas and Private areas. I would like to have Log-in/out form elements on public pages that log the user in, but return them to the same public page they logged in on (leaving the user to continue browsing in Public areas, but also able to browse to Private areas if they wish). Possible?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
There are Public areas and Private areas. I would like to have Log-in/out form elements on public pages that log the user in, but return them to the same public page they logged in on (leaving the user to continue browsing in Public areas, but also able to browse to Private areas if they wish). Possible?
try the example "testpage.php" and check this information from the manual:
testpage.php I created this optional page to show how this class take care of previous pages if the user have to login first.
$test_page_protect->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING']) // set this method, including the server vars to protect your page and get redirected to here after login
Use this method the same like before, except that you enter these two server variables.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4218