markjeffery
Tue 27 February 2007, 11:12 am GMT +0100
I have just installed Access_user Class and most of it is working fine - I can register and confirm registration from the email.
However, I can't seem to get the correct target page to display:-
I access testpage.php or example.php and, as expected directs me to login.php.
I enter username and password and it appears to accept the details but sends me to login.php
If I change the default variable in db_config.php to
define("START_PAGE", "/tab12.php"); [where tab12.php has no Access_user Class code in it]
then it will direct me to tab12.php after I have logged in correctly.
So it seems to me that the code is working correctly, but the line
$page_protect->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING']);
is failing to redirect to the original requested URL
What am I doing wrong?
Kind regards
Mark
However, I can't seem to get the correct target page to display:-
I access testpage.php or example.php and, as expected directs me to login.php.
I enter username and password and it appears to accept the details but sends me to login.php
If I change the default variable in db_config.php to
define("START_PAGE", "/tab12.php"); [where tab12.php has no Access_user Class code in it]
then it will direct me to tab12.php after I have logged in correctly.
So it seems to me that the code is working correctly, but the line
$page_protect->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING']);
is failing to redirect to the original requested URL
What am I doing wrong?
Kind regards
Mark