Re: Session vars not echoing?

From: Date: Thu, 20 Nov 2003 17:44:03 +0000
Subject: Re: Session vars not echoing?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170456@lists.php.net to get a copy of this message
Jas wrote:
[Script registering vars - sessions.php] /* Format Date & Time */ $hour = (date("H:i:s")); $day = (date("d")); $date = (date("F $day, Y"));
Don't you mean $data = date('F d, Y'); I don't see why you're calculating $day and then putting it in date().
/* Register vars */ $_SESSION['date'] = $date; [Main script - index.php] require 'scripts/sessions.php'; echo $_SESSION['date']; //This is not showing up in browser?
I do not see session_start() anywhere... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#170456) next »