This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes how to use httponly cookie in struts applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to use httponly cookie in struts applications" Watch "how to use httponly cookie in struts applications" New topic
Author

how to use httponly cookie in struts applications

prabhukiran
Greenhorn

Joined: Oct 24, 2007
Posts: 2
hi,

has anybody used httponly cookie in their applications.if so i would like you to throw some light on how to use httponly cookie in a struts application.

thanks in advance

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41051
    
  43
Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, I'm not sure what you mean by an "HTTP-only cookie". Cookies are used only with HTTP, not with other protocols. I'm going to move the question to the Struts forum.
[ October 26, 2007: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Try putting in a context.xml file in the META-INF folder.
In that using a <context> tag. This has an attribute called "cookies". Set "true" or "false" to get the desired behaviour out of your web-app
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3700
    
    5

"prabhukiran"

Your name still does not conform to the JavaRanch Naming Policy. Please review the policy and update it appropriately. This is your second warning.

Scott Selikoff


My Blog: Down Home Country Coding with Scott Selikoff
 
Don't get me started about those stupid light bulbs.
 
subject: how to use httponly cookie in struts applications
 
Similar Threads
Need sample of weblogic.xml file for supporting HttpOnly
Setting HttpOnly and Secure attributes in Struts2
How to make _WL_AUTHCOOKIE_JSESSIONID cookie HttpOnly?
httponly cookie
Multiple Cookies with the name 'JSESSIONID' getting created