[dancer-users] Setting cookie name at runtime

Clive Eisen clive at hildebrand.co.uk
Mon Mar 21 16:00:35 GMT 2016


On 21 Mar 2016, at 15:07, Yanick Champoux <yanick at babyl.dyndns.org> wrote:
> 
> 
> 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' );

Thank you 

Unfortunately I get

Exception caught in 'core.app.before_request' filter: Hook error: Usage: Dancer2::Core::Role::SessionFactory::cookie_name(self)

when I try your suggestion

Thanks

—
Clive



More information about the dancer-users mailing list