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
; <[EMAIL PROTECTED]>
Cc: <[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 occur
IL PROTECTED]>
Sent: 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
&
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
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 running,
5 matches
Mail list logo