perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Orlando Andico <>
Subject getting cookies from a library
Date Tue, 10 Jan 2006 10:57:39 GMT
hello all,

i want to "library'fy" some routines into a .pm
(instead of putting it in global.asa)

now i need to grab some cookie

i actually want to hide this cookie invocation in the library .pm so that
the actual program source doesn't have it (an aesthetic thing). so instead
of every page having that cookie line, there's just a simple function call.

problem: $Request object doesn't exist in the .pm
i also tried
$cooky = $Apache::ASP::Request->Cookies("some-large-cookie-name");

which compiles correctly but doesn't work.

or is the only solution to hide the function inside global.asa?

View raw message