On Fri, 09 Jun 2006 15:10:48 +0100  Nick Williams wrote:
 +------------------
 | I never knew about POE::Devel::Profiler and I'm learning rapidly about 
 | it now with my own visualizer. Most cool. However it highlights 
 | something I've wanted for a while: names on sessions. I'm just referring 
 | to something symbolic that can be attached to sessions in order to work 
 | out in debuggers/profilers what's going on instead of session ID's like 
 | '4822813', but without the side-effects that aliases have. Is there a 
 | way of doing this? If not, could it be in an enhancement request?
 +------------------

>From POE::Kernel

    # Set an alias for the current session.
    $status = $kernel->alias_set( $alias );

See also the section titled

    "Numeric Session IDs and Symbolic Session Names (Aliases)"

I guess that it's a bit odd that it's a Kernel method until you realize
where the info about an alias needs to go

--
Chris Fedde

Reply via email to