Session Variables
| From: | Ethan Rosenberg | Date: | Wed, 31 Dec 2014 05:43:07 +0000 |
| Subject: | Session Variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-324194@lists.php.net to get a copy of this message | ||
Dear List -
I have the following code in two files, before any HTML code -
<?php
session_name("STORE");
session_start();
session_set_cookie_params( 'lifetime', '/var/www' );
session_id('Gingy');
set_time_limit(2400);
?>
The first file starts and runs. The second file, called from a form, cannot find localhost, and goes into an infinite loop. Apache dies when the loop starts.
TIA
Ethan