[PHP-DB] Re: log out

2001-09-19 Thread Colter Reed

Try:
?php
session_start() ;
session_destroy() ;
header(Location: http://$HTTP_HOST/mall/menu.php;) ;
?

You need to capitalize the 'L' in Location (HTTP headers are
case-sensitive).

HTH,
Colter Reed

On 9/12/01 5:54 AM, in article [EMAIL PROTECTED],
Its Me [EMAIL PROTECTED] wrote:

 ?php
 session_start();
 session_destroy();
 header(location:http://$HTTP_HOST/mall/menu.php;);
 ?
 
 i wanna make this my log out page.
 it works without the:
 header(location:http://$HTTP_HOST/mall/menu.php;);
 
 i tried to put it befor  session_destroy()
 but still didn't work???


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Re: log out

2001-09-19 Thread Jon Farmer

 You need to capitalize the 'L' in Location (HTTP headers are
 case-sensitive).

Wrong... you can use

header(location: index.php);

just fine... 

Regards

Jon

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send blank email to [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] Re: log out

2001-09-19 Thread Rick Emery

the header() function MUST be sent prior to any other output.  Otherwise, it
will fail.  What else in the page precedes the header()?

-
On 9/12/01 5:54 AM, in article [EMAIL PROTECTED],
Its Me [EMAIL PROTECTED] wrote:

 ?php
 session_start();
 session_destroy();
 header(location:http://$HTTP_HOST/mall/menu.php;);
 ?
 
 i wanna make this my log out page.
 it works without the:
 header(location:http://$HTTP_HOST/mall/menu.php;);
 
 i tried to put it befor  session_destroy()
 but still didn't work???


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]