Dmitry Beransky wrote:
> 
> Hi,
>
> In order to get an instance of Apache::Session, I need to get to the
> current session id which is stored in a request header, which means I need
> to get a reference to the current apache request object.  I've browsed
> through Apache::ASP code and docs and realized that there is no documented
> API for accessing the underlying request, but I can still do it by
> accessing the internal structures directly:
> 
>     $sessionID = $self->{'asp'}->{'r'}->header_in('sessionID');
> 
> So my question is: how reliable this method is?  Can I assume that the
> structure of the ASP and GlobalASA will not change in the future?
>

You can get the current request like Apache->header_in('sessionID')
So this doesn't rely on ASP internals, you'll be fine.

--Joshua

Reply via email to