Page 1 of 1

PHP 4.2.2 session

Posted: Thu Aug 08, 2002 3:54 pm
by darkinvader
Hi, I have a problem with session of php.
I have a frameset where i put :

session_start();
session_register("nick");
$_SESSION['nick']="test";
before the html header.

In a frame (up.php) I put :

session_start();
$var=$_SESSION['nick'];

before the html header.
In $var there isn't "test"...

Where is the problem?
:(

Posted: Thu Aug 08, 2002 6:58 pm
by learning_php_mysql
i got a very simple solution....

use include() or require() instead of frames

Posted: Fri Aug 09, 2002 2:03 am
by twigletmac
Although I do agree with learning_php_mysql there are occasions where you have to use frames, in that case have you read this:
http://www.devnetwork.net/forums/viewtopic.php?t=1030

Mac

Posted: Fri Aug 09, 2002 5:30 pm
by learning_php_mysql
damn mac you're just filled w/usefull info arent you

lol