Page 1 of 1

Weird problem - Setting session variable messes up database

Posted: Sat Nov 03, 2007 12:39 pm
by smarty_pockets
I have a weird problem thats making me go crazy. I have a PHP+smarty video sharing website. Everything works fine, until you log in. When you log in, some database queries start returning 0 results. If you delete your PHP session, things start working fine again.

Is there any correlation between session variable and some sort of DB caching??

Any help or pointers would REALLY be appreciated!

Posted: Sat Nov 03, 2007 12:53 pm
by feyd
Generally, there is no correlation.

Posted: Sat Nov 03, 2007 12:55 pm
by Kieran Huggins
nothing comes to mind... check your login code. Maybe you're overwriting something?

Posted: Sat Nov 03, 2007 6:33 pm
by s.dot
are your session database managed?