Re: Newbie - Can't get sessions to work
| From: | John Nichel | Date: | Wed, 22 Oct 2003 20:03:47 +0000 |
| Subject: | Re: Newbie - Can't get sessions to work | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167156@lists.php.net to get a copy of this message | ||
Chris Boget wrote:
Okay, so we're back to square one....why his sessions aren't working. This thread has been snipped too much, and I've already deleted the original, so I don't have the code that wasn't working. On a side note, Chris, are you in Louisiana? -- By-Tor.com It's all about the Rush http://www.by-tor.comNot entirely true. You can still do the following: echo "foo = $_SESSION[foo]<BR>"; echo "bar = $_SESSION[bar]"; Chris<?php echo "foo = {$_SESSION['foo']}<BR>"; echo "bar = {$_SESSION['bar']}";Not when it's inside a string. His statements should output the following: foo = somevalue<BR> bar = anothervalue Also... he's using { and } because you can't access an array's value unless it's within curly braces.