2008-01-03 15:02:12
Redirecting the loginphp
operating system - Server 2003
version of ATutor - 1.5.5
versions of php - 5.2.3
version of mysq l - 5.0
webserver & version - Apache 2.2.6
web browser being used - firefox and I.E.
I think this problem was already discussed in thread...
http://www.atutor.ca/view/7/612/1.html
But I would like to re-ask this question... the problem is pretty straight and simple... and even though Greg gave a simple answer I'm still in doubt...
Attached is my login.php
Around line 107 the code is:
[php]$msg->addFeedback('LOGIN_SUCCESS');
header('Location: bounce.php?course=1');
exit;[/php]
Instead of 'Location: users/index.php');
which I think was the default...
What happens is that, after you log in, you get to the course's main page... so far so good, but at random times, after you press on any link within the main course web page it will redirect you back to the login.php web page.
I set the access to the course as protected instead of public... still, what I gather from what Greg said, is that the redirect will only work effectively if the course is set to public.
Is that correct or am I reading what Greg said wrong.
Is there a way to fix this problem in protected courses? also, If the problem is a "Session" problem is there a way to auth the session with the redirect.
If not, and if a public course is the only way to make it work I will have to make the course public then.