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
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
My understanding of session variables Five is that you can write and
re-write on the fly.
I know from using VB that this is true and I am assuming that it is true of
PHP. However, you may need to Empty the variable first Five.
Hope that helped.
--
-
Michael Mason
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 #2br';
echo $_SESSION['favcolor'];
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';
?
page2.php
?php
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
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
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';
--- 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
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
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';
?
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
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:
--- 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
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.
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
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
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
--- 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
--- 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
=
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
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();
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
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
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
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
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
27 matches
Mail list logo