[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Cookies, Called Routine



Scott,
Damned if I could resolve MY cookie problem until now.

My destination url returns a session cookie which it associates with a
credentials sent from a login request.
Trouble is, the login would never actually occur and always returned the
please log in page again.
 
After a day of trying every which way I noticed that allowing the
HTTPAPI default cookie handling to occur causes the name of the cookie
attribute in question to be return as lowercase.
Since this is apparently of significance when the destination processes
the login request then the request is unsuccessful.

By setting http_use_cookies(*off), retrieving the header entry
explicitly http_header('set-cookie') and then returning the exact same
via an HTTP_POINT_ADDL_HEADER exit point, the destination responds with
a successful login.

Cheers, Peter

  

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Friday, 24 April 2009 6:54 a.m.
To: HTTPAPI and FTPAPI Projects
Subject: Re: Cookies, Called Routine

hi Jim,

Activation group MIGHT matter.  It depends on:

a) Whether the cookies are session ("temporary") cookies, or whether 
they are permanent cookies.

b) Whether you specified a file to save the cookies to.

HTTPAPI will keep session cookies in memory until the activation group 
ends.  It will, however, save permanent cookies to your cookie file if 
one is assigned.  If no cookie file is assigned, HTTPAPI treats all 
cookies as session cookies.


Jim Muehe wrote:
> Well, I was working with some misconceptions and I was not thinking.
> I took the "ACTGRP(*NEW)" off and then my cookies started working.
> 
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
#####################################################################################
This correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Veda Advantage. If you need assistance, please contact Veda Advantage on either :- Australia 133124 or New Zealand +64 9 367 6200
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------