I've been trying to discover what APEX uses the cookie named LOGIN_USERNAME_COOKIE for. I've searched the forums, and while the cookie is talked about often, I haven't seen a clear explanation of what APEX does with it. I've also searched the "2 Day + Developer's Guide" and "User's Guide" (found
here ) but neither make mention of a cookie by that name. Can someone point me toward the correct documentation or summarize it's use here?
<p>
The reason I ask is we have two applications running on a single apex environment, app 500 and 600. They both require authentication and they both have the same "set username cookie" process in them:
</p>
<p>
begin
owa_util.mime_header('text/html', FALSE);
owa_cookie.send(
name=>'LOGIN_USERNAME_COOKIE',
value=>:P101_USERNAME);
exception when others then null;
end;
</p>
<p>
It has been proposed by someone in my group that it can't possibly be safe/correct to use the same cookie name in both applications and so we should change the name in each of these process to be application specific.
<p>
</p>
I changed each app by appending the app_id to the end of the cookie name (so now app 500 is setting LOGIN_USERNAME_COOKIE_500 and 600 is setting LOGIN_USERNAME_COOKIE_600) and both apps continue to work just fine but I'm worried about unintended side-effects. I'm worried that somewhere deep in the insides of apex it is looking for LOGIN_USERNAME_COOKIE and not finding it and thus breaking in some obscure way. Are my changes problematic or not?
</p>
<p>
Sorry to ramble, thanks for any help.
</p>
Shawn
Message was edited by:
Shawn Kessler