Extending PHP and Sessions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
musashi
Forum Commoner
Posts: 39
Joined: Tue Jul 23, 2002 12:51 pm
Location: Santa Cruz - CA

Extending PHP and Sessions

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
User avatar
musashi
Forum Commoner
Posts: 39
Joined: Tue Jul 23, 2002 12:51 pm
Location: Santa Cruz - CA

I see it

Post 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:
Post Reply