Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cookies disabled warning

Bas de KlerkSep 22 2012 — edited Sep 24 2012
Hi,

APEX 4.1.1 / Database 11.2 XE

I'm trying to set a nice error message for users trying to access an apex application if they have cookies disabled on their browser.
I'm using the suggestion for this from http://joelkallman.blogspot.nl/2012_02_01_archive.html (check cookies enabled via javascript in a page load script or via a dynamic action )

This works whenever I set a "random" page to public and create a dynamic action on page load which checks !navigator.cookieEnabled (javascript) to see if cookies are disabled.

But if the page is a login page of an application (also defined as public) this does not seem to work. Still the too many redirects error occurs and the self defined error ( via dynamic action ) is completely ignored.

There seem to be 2 situations :
1. If you access the application without specifying a page it should get redirected to the login page but now you get the too many redirects error
2. If you access the application with explicitly specifying the login page ( via pagenumber or alias ) you just get the login page, but after login in you again get the too many redirects error ( which is expected ).

Any ideas on how too solve this ?

regards
Bas

p.s. Behavior does not seem to be consistent across browsers, firefox reacts different from chrome.....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2012
Added on Sep 22 2012
1 comment
363 views