[ic] session id length
Dan Bergan
danbergan at gmail.com
Mon Apr 12 04:25:02 UTC 2010
On Sun, Apr 11, 2010 at 9:24 PM, Mike Heins <mike at perusion.com> wrote:
> Quoting Dan Bergan (dan at berganconsulting.com):
>> I'm still using ic 5.4.5, but I was wanting to change my session id length.
>>
>> So, in Session.pm I replaced:
>> $Vend::SessionID = random_string();
>> with:
>> $Vend::SessionID = random_string($::Limit->{
>> session_id_length} ||= 8);
>>
>> And then I added to my catalog.cfg:
>> Limit session_id_length 12
>>
>> I restarted interchange and then cleared my cookies (to get rid of my
>> old session id) and then visited my ic site. But, the session id
>> generated is still 8 characters in length. Is there something else
>> I'm missing?
>
> Are you sure $::Limit is valid in 5.4.5? Try
>
> $Vend::SessionID = random_string($Vend::Cfg->{Limit}->{session_id_length});
Thanks, Mike -
That got it working!
Dan
>
> (The ||= 8 is not really wanted or needed. It will never be set more than
> once a session, and the default for random_string is 8 anyway. It just causes
> copying for no reason.)
>
> --
> Mike Heins
> Perusion -- Expert Interchange Consulting http://www.perusion.com/
> phone +1.765.328.4479 <mike at perusion.com>
>
More information about the interchange-users
mailing list