I just noticed how many threads i started regarding PHP, sorry about that folks ^^, so i will edit this one and bump it instead ^^
anyway...i have 2 files, config.php and index.php
the config.php is included in the index.php
when a user logs in using the index.php, the index.php calls for the function "dologin()" in config.php, and if the user is authenticated it will start a few sessions in that function, user data and such.
My problem is that the sessions aren't passed over to the index.php file...it's almost like i would have to make the sessions global in the function =/
Any ideas?
EDIT->Solution: i forgot to use uppercase when using sessions..stupid me
[PHP] Session in function? *solved*
[PHP] Session in function? *solved*
Last edited by ayu on 02 Aug 2007, 13:11, edited 1 time in total.
"The best place to hide a tree, is in a forest"