[PHP] Session in function? *solved*

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

[PHP] Session in function? *solved*

Post by ayu »

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
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"

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

bump =)
"The best place to hide a tree, is in a forest"

Post Reply