WebSphere Portal Server - Cookies in WPS 5.1

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > April 2006 > Cookies in WPS 5.1





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Cookies in WPS 5.1

2006-04-11, 10:17 am

Hi,

I know that cookies can't be used inside websphere portal, and as stated in the api documentation getCookie() method is one of those that retun nothing for security reasons,

Now I need to create a remember me feature to my custom login, via cookies or any other work around .. any ideas ??

Thanks
marrerel

2006-04-11, 10:17 am

I'm having the same problem here.

End users have come to expect "Remember me" functionality.

E.

2006-04-11, 10:17 am

hi,
Getting the cookies is not a problem in the portlet, you can use getCookies() method from the PortletRequest for this purpose. However you cannot set a cookie in a portlet. So as a work around, I use javascript for setting the cookie which works fine.

Regards
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com