Re: [PHP] Legal $_SESSION names

2009-05-23 Thread tedd
At 2:25 PM +0100 5/23/09, Stuart wrote: 2009/5/22 tedd : > Regardless of what anyone may say to the contrary, it doesn't work everywhere. I found that out the hard way. The fix is simply to use a different name for the variable, such as: $my_var = $_SESSION['myvar']; I'm just guessing but

Re: [PHP] Legal $_SESSION names

2009-05-23 Thread Ashley Sheridan
On Sat, 2009-05-23 at 14:25 +0100, Stuart wrote: > 2009/5/22 tedd : > > Hi gang: > > > > While we're discussing what's legal in css, here's a couple of things I've > > found about sessions. > > > > I found that starting a session with a number doesn't work. > > > > $myvar = $_SESSION['1myvar']; >

Re: [PHP] Legal $_SESSION names

2009-05-23 Thread Stuart
2009/5/22 tedd : > Hi gang: > > While we're discussing what's legal in css, here's a couple of things I've > found about sessions. > > I found that starting a session with a number doesn't work. > > $myvar = $_SESSION['1myvar']; This won't work because $1myvar is not a valid variable. I believe th

Re: [PHP] Legal $_SESSION names

2009-05-22 Thread Ashley Sheridan
On Fri, 2009-05-22 at 12:01 -0400, tedd wrote: > At 4:52 PM +0100 5/22/09, Ashley Sheridan wrote: > >On Fri, 2009-05-22 at 11:30 -0400, tedd wrote: > >> Hi gang: > >> > >> While we're discussing what's legal in css, here's a couple of things > >> I've found about sessions. > >> > >> I found tha

Re: [PHP] Legal $_SESSION names

2009-05-22 Thread tedd
At 4:52 PM +0100 5/22/09, Ashley Sheridan wrote: On Fri, 2009-05-22 at 11:30 -0400, tedd wrote: Hi gang: While we're discussing what's legal in css, here's a couple of things I've found about sessions. I found that starting a session with a number doesn't work. $myvar = $_SESSION['1myvar

Re: [PHP] Legal $_SESSION names

2009-05-22 Thread Ashley Sheridan
On Fri, 2009-05-22 at 11:30 -0400, tedd wrote: > Hi gang: > > While we're discussing what's legal in css, here's a couple of things > I've found about sessions. > > I found that starting a session with a number doesn't work. > > $myvar = $_SESSION['1myvar']; > > I also found that dumping a ses