I'm a newbie and trying to get something done with RC. So here goes my problemo:
1) i've a simple HTML form page which takes username/password for RC (am not using the index.php as login page).
2) the login info is posted to a simple php and it puts the form data in session and redirects to rc/index.php. Here is the code for this simple php:
-----------------------------------
session_start();
$_POST['_user']=$_POST['uname'];
$_POST['_pass'] = $_POST['passwd'];
$_SESSION = $_POST;
session_write_close();
header("Location: rc/index.php");
-------------------------------------
3) at the top of RC index.php page i've the following:
------------------------------
session_start();
$_POST = $_SESSION;
session_write_close();
-------------------------------
That is all when it comes to changing the files or writing code.
Now when i enter my uname/passwd in the HTML form of step 1 and hit submit, the index.php of RC is calling itself over and over making browser to bail out. My Apache log has this line repeating over and over:
GET /rc/?_task=mail HTTP/1.1" 302 -
So my question is why does this happen? If i use rc/index.php directly then it works just fine (even with the lines in step 3 at the top of the index.php).