On 12/31/2014 10:45 AM, Ashley Sheridan wrote:
On Wed, 2014-12-31 at 10:39 -0500, Ethan Rosenberg wrote:
Adam -
Thanks.
I now have -
session_name("STORE");
session_id('Gingy');
session_set_cookie_params( 'lifetime', '/var/www' );
session_start();
No luck.
TIA.
Ethan
---
On 12/31/2014 03:10 AM, Adam wrote:
On Wed, Dec 31, 2014 at 12:43:07AM -0500, Ethan Rosenberg wrote:
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.
Hello Ethan,
I don't think that any of the above has anything to do with the looping you are talking about and
deffinately nothing to do with not being able to "find localhost".
Also, I would suggest to call session_id before calling session_start - as described in manual,
otherwise, it will have not effect.
Second parameter for session_set_cookie_params is a path of your path in http request, it is not a
filesystem path and as with session_id, call it before session_start - read the manual.
Regards,
A.
As we can't see your second script, and it appears (from your original
email) that that is where things are failing, what happens when you try
navigating to that second script directly?
Also, have you checked the Apache (or other web server you may be using)
error logs? If there's some kind of redirect issue it will show up in
there.
To All Who Helped -
All of us know the joke of the person who calls the computer help desk because his printer would nod
work. After extensive diagnostic work, it was determined that the printer was not plugged in.
The code had worked before.
There is a scale connected to the computer. I could not zero the scale. Rebooted the scale, and
everything works!!!
I thank all of you for your helpful comments. I had read the manual, but did not understand the
fine points.
Hopefully, now I understand something, and await my next stupid error.
Thanks again.
Ethan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php