PHP 4.2.2 session

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
darkinvader
Forum Newbie
Posts: 1
Joined: Thu Aug 08, 2002 3:54 pm

PHP 4.2.2 session

Post 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?
:(
learning_php_mysql
Forum Commoner
Posts: 27
Joined: Sun Aug 04, 2002 12:58 pm
Location: WA

Post by learning_php_mysql »

i got a very simple solution....

use include() or require() instead of frames
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
learning_php_mysql
Forum Commoner
Posts: 27
Joined: Sun Aug 04, 2002 12:58 pm
Location: WA

Post by learning_php_mysql »

damn mac you're just filled w/usefull info arent you

lol
Post Reply