Thanx everyone for helping me with this ... especially keakathleen.
keakathleen, about your last post u did not missed the point, maybe im not explaing it the correct way.
I solved my problem but i changed the coding style i wuz using.
I have a quite good knowlegde talking about classes, im totally familiar with that, my problem is the session.
Just for sharing this is what im doing now.
I call my class, the class conects to my database store the data i want with the fetch object.
$UsersObject = new WebUser;
$UsersObject->InfoObject("Info");
The last line above creates another object with all the users information i have in db: Now i can access with.
echo $UsersObject->Info->user_name;
Where "user_name" is the field from mysql that stores users name.
to put these vars inside my sessions now i do somthing like:
$name = $UsersObject->Info->user_name;
session_register("name");
I know this is quite simple. I knew i could have used that before but i wuz trying to get things a lil bit easier for me doing the session_register inside the class. So, when i call
$UsersObject->InfoObject("Info");
this line wuz suposed to put all the db data i want inside my class, automatically. But i realized that even if i register any variable inside my class, they just dont show up in any other page.
But i think this question will not get answered now ....
Anyways .... IM NOT STUCKED !!!
This forum is great !!!
PHP DEVELOPERS UNITE !!!!
Thanx everyone again.....
ps.: keakathleen, i saw your sites. Great Work!