Re: Overriding session length in existing session?
| From: | tedd | Date: | Sat, 05 Mar 2011 18:01:33 +0000 |
| Subject: | Re: Overriding session length in existing session? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311699@lists.php.net to get a copy of this message | ||
At 5:00 PM -0800 3/3/11, Scott Baker wrote:
On 03/03/2011 04:31 PM, tedd wrote: Simple answer -- put session_start() at the start of your code -- firstScott: The statement should be at the start of every php file that has php code in it. For example, if you have three web pages (index.php, services.php, and contact.php) AND you have php code in each that share session data, then the first statement in every page should be: <?php session_start; Here's a working example: http://www.webbytedd.com/b/sessions/index.php The code is there. Cheers, tedd -- ------- http://sperling.com/line.Of index.php or header.php? You lost me. -- Scott Baker - Canby Telcom