Thread

Posted on Thu Apr 6 15:51:10 2006 by lobster
how can I change the default session name?
i'm a newbie in perl... standart documentation doesn't describe such situation, so I haven't any idea why it doesn't work. pls, give me some information!
Direct Responses: 2110 | Write a response
Posted on Thu Apr 6 16:55:48 2006 by ceeshek in response to 2109
Re: how can I change the default session name?

CGI::Session only allows you to change the name of the session globally.

CGI::Session->name('MyCustomSesionID');

CGI::Application::Plugin::Session will automatically notice the change in session name and start using the new one. So just run the above command sometime before you create or access the session.

Cheers,

Cees

Write a response