Sublime directory Surf the web anonymous Pagerank Monitor


Login not re-directing

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

olaf
Tue 27 February 2007, 11:43 am GMT +0100
Hello,

"echo" these vars on the page (f.e. example.php) you are trying to access:

$_SERVER['PHP_SELF']
$_SERVER['QUERY_STRING']

to see if these vars are filled

markjeffery
Tue 27 February 2007, 11:49 am GMT +0100
olaf,

Thanks for your lightning reply.

I have just read through the other posts and found the answer I was looking for!  :-[
Topic: Problem with access_page() 

I have now re-set the line in db_config.php to define("USE_MYSQL_SESSIONS", false);
and it works just fine

Looks like a very useful bit of code.
Many thanks
Mark

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional