Re: [PHP] Re: change value of session variable?

2004-07-22 Thread Five
Sounds like an old bug in PHP. What version are you using? I've been trying to get it to work at: http://members.lycos.co.uk/primeooze/info.php I also have ( apache/php 4.3.4/mysql ) installed on my computer and I get much more satisfactory results on it. I have made progress and some of my

RE: [PHP] Re: change value of session variable?

2004-07-22 Thread Ford, Mike [LSS]
On 22 July 2004 07:50, Five wrote: Sounds like an old bug in PHP. What version are you using? I've been trying to get it to work at: http://members.lycos.co.uk/primeooze/info.php According to this phpinfo(), that site has session.use_cookies=On and session.use_trans_sid=Off. This means

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Justin Patrin
On Wed, 21 Jul 2004 17:45:23 -0400, Five [EMAIL PROTECTED] wrote: page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Matt M.
what do you get when you print_r($_SESSION) ? try session_write_close() at the end of your scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Justin Patrin
On Wed, 21 Jul 2004 17:50:36 -0400, Five [EMAIL PROTECTED] wrote: Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a';

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Chris Shiflett
--- Five [EMAIL PROTECTED] wrote: page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php session_start(); echo 'page

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 21 Jul 2004 17:50:36 -0400, Five [EMAIL PROTECTED] wrote: Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] page1.php ?php session_start(); echo 'page #1br'; echo

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Five [EMAIL PROTECTED] wrote: page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ?

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Justin Patrin
On Wed, 21 Jul 2004 18:43:12 -0400, Five [EMAIL PROTECTED] wrote: Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 21 Jul 2004 17:50:36 -0400, Five [EMAIL PROTECTED] wrote: Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] page1.php

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 21 Jul 2004 18:43:12 -0400, Five [EMAIL PROTECTED] wrote: Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 21 Jul 2004 17:50:36 -0400, Five [EMAIL PROTECTED] wrote:

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Chris Shiflett
--- Five [EMAIL PROTECTED] wrote: That did it! I wonder if there is a way, then, to have it work even if the variable is initialized after it is echoed. You see, that makes no sense, and that's why no one else was able to answer your question. Code is executed in order. Consider this: ?php

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread John W. Holmes
Chris Shiflett wrote: --- Five [EMAIL PROTECTED] wrote: That did it! I wonder if there is a way, then, to have it work even if the variable is initialized after it is echoed. You see, that makes no sense, and that's why no one else was able to answer your question. Code is executed in order.

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Five [EMAIL PROTECTED] wrote: That did it! I wonder if there is a way, then, to have it work even if the variable is initialized after it is echoed. You see, that makes no sense, and that's why no one else was

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Chris Shiflett wrote: --- Five [EMAIL PROTECTED] wrote: That did it! I wonder if there is a way, then, to have it work even if the variable is initialized after it is echoed. You see, that makes no sense, and

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
The problem is that the session variable won't accept a new value just any old where in the code on the second page (apparently.) Or on the first one for that matter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Chris Shiflett
--- Five [EMAIL PROTECTED] wrote: My problem isn't the logic of when and where to output variable values. It's figuring out when a session variable will accept initialization and what enables and/or prevents it from doing so. There's no magic. Session variables behave exactly like any other

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Chris Shiflett
--- Five [EMAIL PROTECTED] wrote: Maybe some custom output buffer will make it work!? :) ---John Holmes... Good idea. I'll look into that. He was kidding. :-) Well, he was serious, in the sense that it could work, but he didn't mean the suggestion to be taken seriously. Chris =

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Five [EMAIL PROTECTED] wrote: My problem isn't the logic of when and where to output variable values. It's figuring out when a session variable will accept initialization and what enables and/or prevents it from

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread John W. Holmes
Five wrote: page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php session_start();

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Justin Patrin
On Wed, 21 Jul 2004 22:42:40 -0400, Five [EMAIL PROTECTED] wrote: Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Five [EMAIL PROTECTED] wrote: That did it! I wonder if there is a way, then, to have it work even if the variable is initialized after it is

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Five
John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Five wrote: page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Justin Patrin
On Thu, 22 Jul 2004 00:48:16 -0400, Five [EMAIL PROTECTED] wrote: Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Five [EMAIL PROTECTED] wrote: My problem isn't the logic of when and where to output variable values. It's figuring out when a session variable

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread John W. Holmes
Five wrote: John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If it does not work for you, are you sure you're accepting the session cookie? How are you sure? Do you have a valid session.save_path? How do you know? Are you displaying errors? How do you know? If you see an

Re: [PHP] Re: change value of session variable?

2004-07-21 Thread Jason Wong
On Thursday 22 July 2004 13:14, Five wrote: If you had read my replies you would know how I know. And, oh yeah, if you're not a troll, how would I know? Could you please trim your posts? Your code as it stands *should* work. YOU have not been able to get it to work so you was given a