session
| From: | ZioBudda | Date: | Sat, 24 Jul 1999 19:24:20 +0000 |
| Subject: | session | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-2700@lists.php.net to get a copy of this message | ||
[I re-send this message becouse the first is not became to the list]
Hi boys and girls, my today question is about session:
In the primary file I have:
session_name("php4_0");
session_start();
session_register("$id_news");
$id_news = 0;
And I have a link in this page:
Premere <a href="ins_commento_form.php?<?=sid?>">qui</a>
When I click on "qui" I get a new page with this url:
http://ilp/ins_commento_form.php?php4_0=368b7e8db890f10ca4b394fb258d8efa
and I think that is correct.
But I don't understand How to get $id_news in this new page.
I have make a print:
<? print(session_name()."=".session_id());?>
but it reply me "PHPSESSID=" and I think that is not correct.
At this point I have think to set IDS with session_id and I have make:
session_id($php4_0);
Hi boys and girls, my today question is about session:
In the primary file I have:
session_name("php4_0");
session_start();
session_register("$id_news");
$id_news = 0;
And I have a link in this page:
Premere <a href="ins_commento_form.php?<?=sid?>">qui</a>
When I click on "qui" I get a new page with this url:
http://ilp/ins_commento_form.php?php4_0=368b7e8db890f10ca4b394fb258d8efa
and I think that is correct.
But I don't understand How to get $id_news in this new page.
I have make a print:
<? print(session_name()."=".session_id());?>
but it reply me "PHPSESSID=" and I think that is not correct.
At this point I have think to set IDS with session_id and I have make:
session_id($php4_0);
but I have not (yet) access to $id_news value.
I have see the demo on URL 129.142.82.11/session/ but I have not
understand all.
tnx in advance.
Morelli Michel