Re: simple-ish question but something i never knew

From: Date: Fri, 16 Dec 2005 15:18:00 +0000
Subject: Re: simple-ish question but something i never knew
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-227551@lists.php.net to get a copy of this message
On Fri, 2005-12-16 at 06:59, Karlos Zafra wrote: > 2005/12/10, Robert Cummings <robert@interjinn.com>: > > I've tried this in my server and had no problem. > > <?php > session_start(); > > $_SESSION['string']="foobar"; > header("location:print_string.php"); > ?> > > <?php > > session_start(); > > echo "String = {$_SESSION['string']}"; > ?> > > This page prints: > > String = foobar > > I can't see the wrong behaviour. Are you referring you your use of a local path when using the location header?? If so, I clearly stated in a previous post in this thread that many browsers tolerate it, but that it isn't standards compliant. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#227551) next »