[dancer-users] Setting cookie name at runtime
Yanick Champoux
yanick at babyl.dyndns.org
Mon Mar 21 15:07:03 GMT 2016
On 2016-03-21 10:41 AM, Clive Eisen wrote:
> in the before hook,
> but neither seem to affect the cookie name
That's because the session module doesn't look at the configuration once
it knows which cookie name to use.
If you want to change the cookie name post-initialization, try
engine('session')->cookie_name( 'new_name' );
and it should makes you happy.
Joy,
`/anick
More information about the dancer-users
mailing list