NYCPHP Meetup

NYPHP.org

[nycphp-talk] accessing $_SESSION elements

Brian Pang bpang at bpang.com
Fri Oct 24 12:36:14 EDT 2003


you almost did
you needed to either have the _SESSION var in double quotes to force
parsing or use explicit concat with period (.).



> Thanks, that works!  I swear I tried concatenation.  Urgh.  :-)
> 
> -Aaron
> 
> On Friday, October 24, 2003, at 12:26 pm, Scott Mattocks wrote:
> 
> >
> >
> > Aaron Fischer wrote:
> >
> >> $begin=1;
> >> if(isset($_SESSION['$begin_fair_name']))
> >> {
> >>   echo "success";
> >> }
> >
> > Try:
> > $begin=1;
> >  if(isset($_SESSION[$begin . '_fair_name']))
> >  {
> >    echo "success";
> >  }
> >
> > Scott Mattocks
> >
> > _______________________________________________
> > talk mailing list
> > talk at lists.nyphp.org
> > http://lists.nyphp.org/mailman/listinfo/talk
> 
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
> 
> 






More information about the talk mailing list