[PHP] sessions trouble

2002-06-18 Thread Leston Drake
Hello, I am unable to retrieve session variables on my local server. I'm using some code like this to test it (thanks to Ed): -- session_start(); echo : . $_SESSION[node] . br; $_SESSION[node] = 10.2; echo : . $_SESSION[node] . br;

RE: [PHP] sessions trouble

2002-06-18 Thread Leston Drake
. Change your code to this style: session_start(); $node = 10.2; session_register('node'); echo $node; Kirk -Original Message- From: Leston Drake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 11:48 AM To: [EMAIL PROTECTED] Subject: [PHP] sessions trouble Hello

RE: [PHP] sessions trouble

2002-06-18 Thread Leston Drake
-Original Message- From: Leston Drake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 11:48 AM To: [EMAIL PROTECTED] Subject: [PHP] sessions trouble Hello, I am unable to retrieve session variables on my local server. I'm using some code like this to test

Re: [PHP] sessions trouble

2002-06-18 Thread Leston Drake
Ok, tried that. No difference. At 12:49 PM 6/18/2002, you wrote: Try using the fuction session_write_close() after your done setting the session vars. dunno but it might work :) Rick - Original Message - From: Leston Drake [EMAIL PROTECTED] To: Johnson, Kirk [EMAIL PROTECTED] Cc

RE: [PHP] sessions trouble

2002-06-18 Thread Leston Drake
$HTTP_SESSION_VARS[]. -Original Message- From: Leston Drake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 12:29 PM To: Johnson, Kirk Cc: [EMAIL PROTECTED] Subject: RE: [PHP] sessions trouble I have register_globals=Off (which is what I prefer to program for). But if I

[PHP] string to array?

2002-06-13 Thread Leston Drake
Hi all, I have a string something like 10.2.3 I want to be able to use the . as a delimiter to reference the elements (10, 2, and 3). My thought was to create an array, using . as the delimiter. Is there a function that will create an array out of a string, using a delimiter you specify? I

[PHP] newbie question - retaining values

2002-06-13 Thread Leston Drake
Hi, I've been creating forms that use hidden inputs to retain variables and values from one instance of the form to the next (by calling itself in the FORM ACTION). Are there other ways to retain *global* variables and values between instances of loading a page? I apologize for the newbie

[PHP] sessions help

2002-06-13 Thread Leston Drake
Hi again. Thanks to Miguel and Matt for pointing me to sessions for retaining variables. I've got the register_globals directive set to Off. I want to store a value in a session variable. I've set up two documents (one that sets a session variable, and one that retrieves it), with the

Re: [PHP] sessions help

2002-06-13 Thread Leston Drake
I just tried adding session_start() to the beginning of both files. When I load Doc 1, I get this warning twice(!): Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\wan\sessions.php:7) in c:\program files\apache

Re[2]: [PHP] sessions help

2002-06-13 Thread Leston Drake
It's the 1st line after ?php in both files. At 03:09 PM 6/13/2002, you wrote: LD I just tried adding session_start() to the beginning of both files. When I LD load Doc 1, I get this warning twice(!): LD Warning: Cannot send session cache limiter - headers already sent (output LD started at

Re[2]: [PHP] sessions help

2002-06-13 Thread Leston Drake
Thanks to Julie and Stuart for helping me. With your direction, I got rid of the warning about the headers by putting the session_start() at the beginning of the file. Now I get a different sort of error when I try to retrive the session variable: --- Warning:

Re[2]: [PHP] sessions help

2002-06-13 Thread Leston Drake
At 03:32 PM 6/13/2002, you wrote: Thanks to Julie and Stuart for helping me. With your direction, I got rid of the warning about the headers by putting the session_start() at the beginning of the file. Now I get a different sort of error when I try to retrive the session variable:

Re[3]: [PHP] sessions help

2002-06-13 Thread Leston Drake
I've stripped the code down to barest bones to try to figure this out: [getglobal.php] ... echo Node is {$_SESSION['node']}.; ... [session.php] ... $_SESSION['node'] = 10.2; ... Other than the standard html, head, title, body tags and the session_start(), there is no other code. I'm still

Re: Re[3]: [PHP] sessions help

2002-06-13 Thread Leston Drake
Yeah, I thought of that too. Same result, though. At 04:16 PM 6/13/2002, you wrote: Hmm. Okay. Replace $_SESSION with $HTTP_SESSION_VARS and see if that works. -Kevin - Original Message - From: Leston Drake [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 13, 2002 4:07 PM

RE: Re[4]: [PHP] sessions help

2002-06-13 Thread Leston Drake
At 04:35 PM 6/13/2002, you wrote: Have you tried this on a separate web page to make sure it's not something server specific? No, but that's a good idea. I will try it. Here's a script that worked from my computer with register_globals set to on and off (restarted server between tests for

RE: Re[4]: [PHP] sessions help

2002-06-13 Thread Leston Drake
Hey, it worked on another server! I've been working on my local machine's server (localhost), but when I run it from a different web server, it worked fine. Any ideas about which setting(s) may be causing the problem? From my php.ini file: session.save_handler=files session.save_path=