Authenticate_visitor
#16
Posted 23 May 2006 - 10:35 AM
It would be nice if
a. the are included in the available download-package or
b. the fix'es are gathered in one spot - fx using the ShowFiles-snippet - easy and ready for download.
#17
Posted 23 May 2006 - 10:37 AM
It would be very unwise to include all fixes in the download immediately because we would have dozens of different releases.
#18
Posted 23 May 2006 - 11:30 AM
#19
Posted 03 June 2006 - 07:59 AM
If I call with id=2 with FURLS enabled, the url that's generated for redirect is:
"http://www.longtins.com/cm_test/2.html"
which fails, of course. If I instead pass alias=repository, I get:
"http://www.longtins.com/cm_test/repository.html"; or
"http://www.longtins.com/cm_test/.html"
depending on whether FALIASES are enabled, both of which also fail (though I think the "repository.html" one should work since FURLS are enabled??). I suppose it's not crucial that I use FURLS, but I'd like to. I'm on Prelude Final. Suggestions?
#20
Posted 03 June 2006 - 08:09 AM
shanester, on Jun 3 2006, 08:59 AM, said:
edit:
... and make sure the page you are trying to redirect to is published! repository seems an odd choice ...
Edited by mikef, 03 June 2006 - 08:15 AM.
#21
Posted 03 June 2006 - 10:31 AM
#22
Posted 03 June 2006 - 02:01 PM
#23
Posted 03 June 2006 - 02:48 PM
shanester, on Jun 3 2006, 10:01 AM, said:
#24
Posted 18 June 2006 - 03:40 PM
If I log in with the correct id and password, it just redisplays the login form; it doesn't display 'logout' instead, so $_SESSION['validated'] must be false, looking at the code. The EtoGal page I'm using it for also fails to detect that anyone is logged in; it uses the code
$userdetails=$etomite->userLoggedIn();
if($userdetails['id']) {
... to detect if anyone is logged in.If I attempt to login using an incorrect password, an error message is printed saying that the password is invalid, so its not that I've got the password wrong!
Edited by mikef, 18 June 2006 - 03:40 PM.
#25
Posted 18 June 2006 - 04:28 PM
mikef, on Jun 18 2006, 11:40 AM, said:
If I log in with the correct id and password, it just redisplays the login form; it doesn't display 'logout' instead, so $_SESSION['validated'] must be false, looking at the code. The EtoGal page I'm using it for also fails to detect that anyone is logged in; it uses the code
$userdetails=$etomite->userLoggedIn();
if($userdetails['id']) {
... to detect if anyone is logged in.If I attempt to login using an incorrect password, an error message is printed saying that the password is invalid, so its not that I've got the password wrong!
#26
Posted 18 June 2006 - 04:37 PM
Ralph (rad14701), on Jun 18 2006, 05:28 PM, said:
ie, defaults used. all pages are uncached.
#28
Posted 18 June 2006 - 07:18 PM
Ralph (rad14701), on Jun 18 2006, 07:58 PM, said:
No ... it shouldn't be necessary when the page isn't cached, and I know the snippet is being executed anyway (as I said before, it gives an error if I give the wrong password). The fact that the screen isn't updated correctly is merely confirmation that there's something wrong with the authentication, as EtoGal (on another page) also fails to detect that the user is logged in. (If I provide the page id, authenticate_visitor does cause it to go to the new page.) The problem may not be in authenticate_visitor itself, of course, it could be in the routines in index.php which probably haven't been that well tested for a Windows server environment. (As noted elsewhere, I've already had to patch an error in index.php and config.inc.php to get the right URL generated.)
#29
Posted 18 June 2006 - 07:44 PM
#30
Posted 18 June 2006 - 07:55 PM
Ralph (rad14701), on Jun 18 2006, 08:44 PM, said:
I have what I believe is the current latest index.php, and it has the error in the code for generating the protocol. I don't recall there being any advice that any of the patches needed to be applied before installation, so none would have corrected the error in config.inc.php.
I'm not a believer in replacing code with patched versions that solve unknown problems in the hope that they won't break anything else and might just happen to address this problem. patches generally get tested for the problems they aim to solve, rather than full regression testing.
I have no idea what the current set of patched files are, because they aren't gathered together in a coherent fashion, with what they fix.
I'll look at the code in the relevant routines later, and see if I can find anything, but the will probably not be before tomorrow evening.
Edited by mikef, 18 June 2006 - 08:14 PM.
#31
Posted 18 June 2006 - 08:45 PM
mikef, on Jun 18 2006, 03:55 PM, said:
I have what I believe is the current latest index.php, and it has the error in the code for generating the protocol. I don't recall there being any advice that any of the patches needed to be applied before installation, so none would have corrected the error in config.inc.php.
I'm not a believer in replacing code with patched versions that solve unknown problems in the hope that they won't break anything else and might just happen to address this problem. patches generally get tested for the problems they aim to solve, rather than full regression testing.
I have no idea what the current set of patched files are, because they aren't gathered together in a coherent fashion, with what they fix.
I'll look at the code in the relevant routines later, and see if I can find anything, but the will probably not be before tomorrow evening.
#32
Posted 19 June 2006 - 12:27 AM
Ralph (rad14701), on Jun 18 2006, 09:45 PM, said:
calling authenticate_visitor with no params, either using [[ or [!
with the correct password, the necessary session variables aren't set when the page is refreshed, the full set being:
<!-- session :_logging_first_hit:1: --> <!-- session :visitorLogged:1: --> <!-- session :userAgentLogged:1: --> <!-- session :operatingSystemLogged:1: --> <!-- session :hostNameLogged:1: -->
with an incorrect password, I get an error message
with the correct password, and an id set for the target page, it goes to the target page; the required session variables are still missing.
#33
Posted 19 June 2006 - 02:01 AM
#34
Posted 19 June 2006 - 11:45 AM
Ralph (rad14701), on Jun 19 2006, 03:01 AM, said:
#35
Posted 25 June 2006 - 06:41 PM
Can anyone help me with sessions and authenticate_visitor?
I have this snippet and user can successfuly login (for gallery managment), but I want to give him oportunity to log into Etomite manager with current session. Simple redirection through link <a href="manager/index.php"> cause starting of new session and user have to log-in again.
I'm not a professional webmaster, please, forgive me if the question is simple
regards,
Jakub
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users










