Re: session question
| From: | Plutarck | Date: | Thu, 05 Apr 2001 06:37:47 +0000 |
| Subject: | Re: session question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47187@lists.php.net to get a copy of this message | ||
First use session_register(). Then give the variable a value.
So just rearrange your code, like this:
<?php
session_start();
$SID = date("Y F j H:i:s");
session_register("SID"."fillista");
$fillista = "fillista.xml";
print "SID=".$SID;
?>
That should do it.
--
Plutarck
Should be working on something...
...but forgot what it was.
"Jan Grafström" <jan@lillemanshus.com> wrote in message
news:3AC84A00.C4AB7F64@lillemanshus.com...
> Hi!
> I am trying to learn about sessions and set up this file,
>
> <?
> session_start();
> $fillista = "fillista.xml";
> session_register("SID"."fillista");
> $SID = date("Y F j H:i:s");
> print "SID=".$SID;
> ?>
>
> This seams not to work on the file fillista.xml, I can still read it
> afterwords in IE:s cache. How do I pass the session to a xml-file on
> server?
>
> Thanks for any help.
>
> Regards
> jan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>