From: Marc M. <mwm...@ro...> - 2002-11-18 16:27:02
|
I've been trying to understand how the Apache stuff Slash uses works and there are a few issues maybe you guys could help me with. So, in several places the cfg hash set by SlashVirtualUser is modified...it's used to store the pointer to the current user for example, with Environment functions like createCurrentUser, getCurrentUser, etc. $cfg = Apache::ModuleConfig->get($r, 'Slash::Apache); First, are changes made to the $cfg hash supposed to be permanent? Any attempts to change the data there seem to get overwritten with the original values. The anonymous_coward pointer stored in $cfg{anonymous_coward} is set by SlashVirtualUser. Any attempts to modify it seem to result in the initial data ending up there again. I'm guessing the anonymous_coward info is designed to be static to reduce DB queries. The reason I'd want to change it would be if I'm editing UID=1 and want the changes to take effect without restarting httpd. $cfg->{user} = \%newuser; Second, whenever a change is made to the $cfg hash, lots of handlers seem to be re-run. Apache::User handler is run several times it seems in connection with with changing anything in the $cfg hash. Any help from those who know more than I would be appreciated! Thanks. |