Unable to read cookie across subdomains (owa_cookie)

In my production environment, my front end is on a.example.com and my back end is on b.example.com:

I'm creating a cookie in .example.com domain in path '/' using javascript for it to be read from any subdomain.

When I try to read the cookie from b.example.com domain from Oracle using owa_cookie it gives the error no_data_found.

I looked at the contents of the cookie in my browser and I could see it:

Domain .example.com

Path /

In my test environment, my front end and back end are on the same subdomain b.example.com. Here the Oracle Application server is able to read the cookie with the exact same code.

What am I doing wrong? From what I've read, I just need to store the cookie in .example.com for it to be read from any subdomain. But it still doesn't work.


If you want to write/read cookies across subdomains, you just need to save it in .example.com. The issue was something else - it was a name mismatch. Thanks folks.

Need Your Help

Hibernate not recognizing column length in script. Its using default one and giving Data too long for column error

java mysql sql hibernate spring-data

I am using scripts to generate tables instead of hibernate auto generate. There is a varchar column with length 5000

Adding multiple boolean arrays together

java arrays nullpointerexception

I have this method that adds two 2d boolean arrays together. So for a given cell, if any array is true for that cell, the cell in the resulting array is set to true.