Reply
Posted: Thu Mar 29, 2007 2:57 pm
That was the problem. We have solved it. You are great Everah. I will check where exactly the problem came from and I will post back.
Thank you, man.
First:
Finally:
Thank you, man.
First:
Then:array(2) {
["username"]=>
string(12) "testusername"
["password"]=>
string(12) "testpassword"
}
You user name is testusername
And your password is testpassword
Click here to go back to page 1
Pre-Finally:array(2) {
["username"]=>
string(12) "testusername"
["password"]=>
string(12) "testpassword"
}
You user name is already set to testusername
And your password is already set to testpassword
Click here for page 2
Click here to clear the session data
The warning comes from the setcookie function because of sent headers.array(2) {
["username"]=>
string(12) "testusername"
["password"]=>
string(12) "testpassword"
}
You user name is already set to testusername
And your password is already set to testpassword
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\apache\session-test-page1.php:17) in C:\Program Files\Apache Group\apache\session-test-page1.php on line 30
Even though you see the information above, the session has already been terminated. Refresh the page and you will see nothing as the page sets the session vars again.
Click here for page 2
Click here to clear the session data
Finally:
array(2) {
["username"]=>
string(12) "testusername"
["password"]=>
string(12) "testpassword"
}
You user name is testusername
And your password is testpassword
Click here to go back to page 1