Re: [PHP] session vs. header

2002-11-06 Thread huge junk mail
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

Re: [PHP] session vs. header

2002-11-06 Thread dwalker
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

Re: [PHP] session vs. header

2002-11-06 Thread dwalker
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

Re: [PHP] session vs. header

2002-11-06 Thread Chris Shiflett
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.

[PHP] session vs. header

2002-10-30 Thread huge junk mail
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

Re: [PHP] session vs. header

2002-10-30 Thread 1LT John W. Holmes
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

Re: [PHP] session vs. header

2002-10-30 Thread Jonathan Sharp
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

[PHP] Session and header()

2001-11-21 Thread Jordan Elver
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

[PHP] Session and header() errrors

2001-10-04 Thread Web user
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

Re: [PHP] Session and header() errrors

2001-10-04 Thread Rasmus Lerdorf
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

Re: [PHP] Session and header() errrors

2001-10-04 Thread Dimitris Kossikidis
: 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

Re: [PHP] Session and header() errrors

2001-10-04 Thread Naintara Jain
[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