RSAVAGE via RT wrote:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=34668 >
>
> On Mon Apr 07 05:42:17 2008, colin.fine@pacemicro.com wrote:
>
>
>> Not really, because that discussion is in the context of exiting the
>> session. I want you to change the POD for delete() to say that you
>>
> must explicitly call flush() after it.
>
> The new text under delete() (which I wrongly assumed you'd seen) is:
>
> Warning: Auto-flushing can be unreliable, and always explicitly calling
> C<flush()> on the session before the program exits
> should be regarded as mandatory until this problem is rectified.
>
> Clear enough?
>
>
Sorry, no I haven't seen it - I'm working from the CPAN website, and it
doesn't appear to have updated yet. Does it still say that it 'triggers'
flush()?
Show quoted text>> No, I wasn't clear. I am calling new($CGI) after the delete().
>>
>
> OK.
>
>
>> The reason I need to do this is that there may be a cookie identifying
>> the existing session, which I want to trash. So new(undef) or new($CGI)
>> will pick up the existing session, which I then delete before creating a
>> new one.
>>
>
> I'll run some tests tomorrow. It's 8pm here now.
>
> Frankly, I did not expect new(undef) to use an existing session. We'll see.
>
>
I think that what's happening is that new(undef) creates a new CGI,
which contains the CGISESSID cookie - this is what you want most of the
time, but in this particular case I want to trash it.
Show quoted text>> While I'm on the subject of the documentation, I'd like the POD for
>> load() to say explicitly that if it does not find an existing session it
>> still returns a session object (which is empty). I know that this is
>> implicit in the example, but it would be clearer if it said so.
>>
>
> That's a good point. I'll clarify the docs (tomorrow...).
>
>
>
Thanks for your quick responses. Sleep well!
--
*Colin Fine*
*Engineering Tools Group
Pace Micro Technology plc*
*/Bringing Technology Home/*
*Tel: +44 1274 538038*
*Fax: +44 1274 532029*
*Victoria Road, Saltaire, West Yorkshire. BD18 3LF _
__www.pacemicro.com_*
This E-mail and any attachments hereto are strictly confidential and
intended solely for the addressee. If you are not the intended addressee
please notify the sender by return and delete the message. You must not
disclose, forward or copy this E-mail or attachments to any third party
without the prior consent of the sender. Pace Micro Technology plc
(registered in England and Wales no. 1672847) whose head office is based
at Victoria Road, Saltaire, West Yorkshire, BD18 3LF, UK. Tel +44 (0)
1274 532000 Fax +44 (0) 1274 532010 and at_
http://www.pacemicro.com_.
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com