Please Help,When I redirect from popup,application again asking for login.
565273May 10 2007 — edited May 11 2007Hi
I have mail functionality in my application implemented in a pop-up page, which comes up upon clicking a MAIL link in the application.
After sending mail a javascript confirm will appere upon clicking OK for the confirmation message, I am redirecting it to same mail page (which is a popup window).
But when it re-direct it again asks me to login,which is Page 101.
Below is the code,
APEX_MAIL.SEND
(
P_TO => :P9_TO,
P_FROM => :APP_USER||'@mycomp.COM',
P_BCC => :APP_USER||'@mycomp.COM',
P_BODY => :P9_BODY,
P_SUBJ => :P9_SUBJECT);
APEX_MAIL.PUSH_QUEUE('mail.mycomp.com',25);
wwv_flow.g_unrecoverable_error := TRUE;
htp.p('<script type="text/javascript">
var answer = alert("Mail sent successfully...!!!")
if (!answer)
window.location="http://ykamath-lap:7777/pls/apex/f?p=103:9:&APP_SESSION."
</script>');
Please let me know if I need to do any configuration in application or if i am wrong in my code.
Thanks
Yogesh