Re: session and frames: please HELP!!!!!
| From: | Marian Vasile | Date: | Wed, 26 Sep 2001 14:26:22 +0000 |
| Subject: | Re: session and frames: please HELP!!!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68871@lists.php.net to get a copy of this message | ||
You can't send from outside, something that is INSIDE... I mean a session
variable.
If that could be done than probably I will seriously have security problems.
Now what you've written it's correct in my opinion and it should work.
What are you trying to do exactly? to save a session variable, or the
current session name ?
I think this is the problem you got it wrong.
The best way for you, to forward a password (because this was the example
you said) is to do like this:
in the current file you'll have:
session_start(); session_register("session_password");
session_register("session_value");
$password=session_password; $value=session_value;
then
frame src=menu.php?<? echo session_name()."=".session_id(); ?>
and in the menu.php you need to have that:
session_start();
(to start the sessions and create the sessions variable... :)
Yours,
M
"Michael Thanry" <Michael.Thanry@Artemisinternational.fr> wrote in message
news:OFFB4E3141.4CF34AE0-ONC1256AD3.0047485D@artemisinternational.fr...
>
> Hello everyone!
>
> I've a quick question I've been working on for a few days, look into the
> archive of the mailing-list but found nothing relevant:
>
> How to forward a session variable such as a password to a page containing
> frames?
> I tried something like frame src=menu.php?<? echo session_name()."
> =".session_id(); ?> but it didn't seem to work.
>
> Any idea or suggestion?
>
> Regards,
>
> Michael Thanry
>