I think I have to re-explain the problem completely. I want to use this script in a
login form. Once, someone is authenticated, then I register variables for indentifying
him/her through session. After I register those variables I want to redirect him/her
to a page, which required
PROTECTED]
Date: Wednesday, November 06, 2002 9:03 AM
Subject: Re: [PHP] session vs. header
I think I have to re-explain the problem completely. I want to use this
script in a login form. Once, someone is authenticated, then I register
variables for indentifying him/her through session. After I
I believe the php code gets executed before html code is processed.
-Original Message-
From: dwalker [EMAIL PROTECTED]
To: huge junk mail [EMAIL PROTECTED]; [EMAIL PROTECTED]
[EMAIL PROTECTED]
Date: Wednesday, November 06, 2002 10:44 AM
Subject: Re: [PHP] session vs. header
What I've
huge junk mail wrote:
Can someone tell me why I can't have
$_SESSION['foo'] = 'content of foo';
following by
header('Location: http://www.mysite.com');
Someone from www.php.net told me that it can confuse
browser (http://bugs.php.net/19991). But, still I
can't the idea why it can happen.
Can someone tell me why I can't have
$_SESSION['foo'] = 'content of foo';
following by
header('Location: http://www.mysite.com');
Someone from www.php.net told me that it can confuse
browser (http://bugs.php.net/19991). But, still I
can't the idea why it can happen. Does register
session means
Can someone tell me why I can't have
$_SESSION['foo'] = 'content of foo';
following by
header('Location: http://www.mysite.com');
Someone from www.php.net told me that it can confuse
browser (http://bugs.php.net/19991). But, still I
can't the idea why it can happen. Does register
huge junk mail wrote:
Can someone tell me why I can't have
$_SESSION['foo'] = 'content of foo';
following by
header('Location: http://www.mysite.com');
Someone from www.php.net told me that it can confuse
browser (http://bugs.php.net/19991). But, still I
can't the idea why it can
Hi,
I've got a login script that uses sessions. To end a login session, I simply
delete the session variables and do a session_destroy() which seems to logout
everyone ok. The problem comes when I do a header() call afterwards to
redirect after logging out.
It seems the header() call stops my
Why do the errors occur while running the scripts below? It seems that the
errors occured at the part of session and header(). Please give me some
advice!
Thank you!
Mike
System: PHP4.06 + Apache 1.3.20 Win32 + Win98 (the session configurations
are default in php.ini)
when the 1.php is
You can't send any output before the session_start() call. You require a
file which outputs html before calling session_start(). Simply do the
session_start() before the require and it should work.
-Rasmus
On Thu, 4 Oct 2001, Web user wrote:
Why do the errors occur while running the scripts
: Thursday, October 04, 2001 11:51 AM
Subject: [PHP] Session and header() errrors
Why do the errors occur while running the scripts below? It seems that the
errors occured at the part of session and header(). Please give me some
advice!
Thank you!
Mike
System: PHP4.06 + Apache 1.3.20 Win
[EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 4:48 PM
Subject: Re: [PHP] Session and header() errrors
You should change sessions configuration in php.ini
The default value for sessions dir /tmp.
In windows shoud point to c:\tmp
The header error occurs because you get a warning about sessi
12 matches
Mail list logo