As I get into OOP with PHP I have one issue I cant seem to figure out.
If you can, how can you start a session in a function under a class? Everytime I do it the session never gets passed, yet when I start the session externally of the class it works like it is suppose to
class Whatever {
function MakeSession() {
session_start();
session_register('this');
}
}
So when I try to echo out $PHPSESSID nothing shows up. So do I need to do a return or what? I am basically asking how to pass session information in a class
Thanks