|
Posted by Marcelo Volmaro on 04/09/05 02:51
Hi,
I=C2=B4ve made a simple site with a loguin, that in my machine works per=
fectly, =
but not on the server.
The problem seems to be on the session handling. I don=C2=B4t loose the =
SID, =
but the session gets corrupted.
If I do a print_r($_SESSION), after the loguin i get the correct vars, b=
ut =
after i click on a link, while the session ID is
still the same (i pass it both in the URL and using cookies) the print_r=
=
returns something like the following:
__PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] =3D> user =
[ID] =
=3D> 30 [nick] =3D> ....
This are the steps after the loguin:
1) First page that shows:
http://www.site.com/index.php?b44590661eba2475ea2ff8a96d53c0b6§i=
on=3Duserarea
print_r($_COOKIE) Array ( [PHPSESSID] =3D> =
b44590661eba2475ea2ff8a96d53c0b6 )
print_r($_SESSION) Array ( [LANG] =3D> en [user] =3D> Username [pass=
] =3D> =
37bfafe651a55eef [group] =3D> 5 )
I click on the following link: http://www.site.com/
index.php?b44590661eba2475ea2ff8a96d53c0b6§ion=3Duserarea&subsection=
=3Ddeletefile&id=3D33
2) And this page displays:
http://www.site.com/index.php?b44590661eba2475ea2ff8a96d53c0b6§i=
on=3Duserarea&subsection=3Ddeletefile&id=3D33
print_r($_COOKIE) Array ( [PHPSESSID] =3D> =
b44590661eba2475ea2ff8a96d53c0b6 )
print_r($_SESSION) Array ( [LANG] =3D> en [user] =3D> =
__PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] =3D> user
[ID] =3D> 30 [nick] =3D> Username [password] =3D> 37bfafe651a55eef [grou=
p] =3D> 5 )
Any idea?
Regards,
-- =
Marcelo Volmaro
Navigation:
[Reply to this message]
|