RE: [PHP-DB] cookies and Global variables
| From: | Niklas Lampén | Date: | Thu, 06 Jun 2002 07:24:38 +0000 |
| Subject: | RE: [PHP-DB] cookies and Global variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100902@lists.php.net to get a copy of this message | ||
1. Cookies _has_ to be sent before anything else, that just is the case.
2. Sessions are the answer for thisone.
Niklas
-----Original Message-----
From: Dib, Walid (MED, Stagiaire GEMS) [mailto:Walid.Dib@med.ge.com]
Sent: 6. kesäkuuta 2002 10:06
To: 'php-db@lists.php.net'
Subject: [PHP-DB] cookies and Global variables
Hello
1) I want to use cookies for my site, how can I do it? My browser warn
me that headers are already sent!!
2) How can I use the same variables on all pages:
for example: $login, I need this variable on all pages to send
requests to a MySQL database.
Thanks!!!!
DIB Walid
###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/