Page 1 of 1

Extending PHP and Sessions

Posted: Wed Mar 26, 2003 12:45 pm
by musashi
I'm extending PHP by building and compiling in a C module. There are Macros for all kinds of things, but one thing I cannot find is any mention of session information. I basically have a function that will alter the contents of the $_SESSION variable. I realize that I could pass the $_SESSION variable into my functions, but I'd rather not have too.

Any thoughts?

Posted: Thu Mar 27, 2003 2:40 am
by volka
  • you might want to take a look at
  • PHP_FUNCTION(session_register)
  • static void php_register_var(zval** entry TSRMLS_DC)
in session.c

I see it

Posted: Thu Mar 27, 2003 12:27 pm
by musashi
Man, Volka... Thanks for the tip.

It's in there, now I just need to figure out how to utilize it without blowin things up!

:lol:

For anyone trying to do this you can find session.c in the ext directory. If I get it all worked out I'll post up somethin or write an article on it.

No guts no glory. :twisted: