Using $_SESSION in hooked function not working
-
Hello,
I’m building a custom theme and I’m trying to do the following:
– In my functions.php file I start a session on init
– I’ve added a couple of values to $_SESSION
– I’ve written a function and added it with a filter hook
– I’m trying to get some $_SESSION variables inside the function> I’m stuck getting the $_SESSION variables. Nothing I’ve tried seems to work. Does anybody have an idea what I’m doing wrong?
- The topic ‘Using $_SESSION in hooked function not working’ is closed to new replies.