Re: session and frames: please HELP!!!!!

From: Date: Wed, 26 Sep 2001 17:14:37 +0000
Subject: Re: session and frames: please HELP!!!!!
Groups: php.general 
Request: Send a blank email to php-general+get-68898@lists.php.net to get a copy of this message
Ok, I now feel stupid because it still don't work or I still don't get it. Here are the filez please feel free to comment and advise. (See attached file: testadmin.php)(See attached file: index2.php)(See attached file: menu.php)(See attached file: index.php) "Marian Vasile" <marian@schnecker. To: php-general@lists.php.net rdsnet.ro> cc: Subject: Re: [PHP]session and frames: please HELP!!!!! 26/09/2001 16:26 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 > -- 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

« previous php.general (#68898) next »