RE: [PHP] Sessions Question
| From: | Chris W. Parker | Date: | Wed, 15 Oct 2003 21:14:50 +0000 |
| Subject: | RE: [PHP] Sessions Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166255@lists.php.net to get a copy of this message | ||
Jake McHenry <mailto:linux@nittanytravel.com>
on Wednesday, October 15, 2003 12:55 PM said:
> Once I get a complete list, I can just copy and paste that to all my
> files, correct?
Yes you can just copy and paste the code.
> What happens if I try to call a variable in $_SESSION
> that hasn't been created yet?.... This might not let me copy and
> paste....
Nothing will happen except that you'll have an empty string (I think).
Give it a shot and find out.
<?php
session_start();
$myval = $_SESSION['myval'];
?>
Put that into a new page and see what happens.
Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/