RE: [PHP] Session_start()
| From: | Matthew Walker | Date: | Fri, 08 Mar 2002 00:25:18 +0000 |
| Subject: | RE: [PHP] Session_start() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87713@lists.php.net to get a copy of this message | ||
You must place session_start() before any other /output/. It can come
after other code, as long as nothing will be output before it.
Alternately, you can turn on output buffering and just not worry about
it.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-----Original Message-----
From: Team GotFusion [mailto:tami@gotfusion.com]
Sent: Thursday, March 07, 2002 7:16 AM
To: php-general@lists.php.net
Subject: [PHP] Session_start()
Do I have to place a session_start() function at the top of a page
(.php) before the <headers>?
If I am creating a login form with PHP_SELF, can I place the
session_start() at any point in the html where the user has been
validated and logged in?
Thanks, Tami
Team GotFusion
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 2/19/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 2/19/2002