cancel
Showing results for 
Search instead for 
Did you mean: 

Get cookie info in controller

Former Member
0 Kudos

Hi,

I need to get cookie info of the user when he has logged in into the portal. Is this possible? I couldnt find anything from which i could extract cookie info or session info.

Anyone know if this is poissible and if so from where to get it. I found a link to this /thread/63969 [original link is broken]

but this doesnt look like a thing i could use.

Much thanks,

Hugo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Try this

HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();

Cookie[] cookies = request.getCookies();

See this Thread

Kind Regards

Mukesh

Former Member
0 Kudos

Hi Mukesh,

Worked like a charm. Thx.

Hugo

Answers (0)