https://bz.apache.org/bugzilla/show_bug.cgi?id=69412
Bug ID: 69412
Summary: mod_lua support for mod_session
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: mod_lua
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
It would be nice if mod_lua code could read and write mod_session data.
Currently the only way I’ve found to do it is either (1) in a Lua handler,
using `HTTP_SESSION` and the `SessionHeader` response header; or (2) in a
fixups hook, for reading only, using `HTTP_SESSION`, by adding an additional
custom-written module whose purpose is simply to order `mod_lua` after
`mod_session` since they are both `APR_HOOK_MIDDLE` and don’t declare
predecessors or successors (experimentation suggests that merely
`LoadModule`ing `mod_session` first also works, but
<https://httpd.apache.org/docs/2.4/developer/hooks.html#hooking-order> doesn’t
mention that as an officially-sanctioned way to order hook execution, so I have
to assume it’s undefined behaviour and could change in future versions). It
would be nice if other hooks earlier than fixups could also access session
data, and if session data could be accessed by a nicer API such as a table-like
object like much of the other stuff accessible to mod_lua.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]