cookie-httponly

How to configure JBoss 4.0.* to make session cookie HttpOnly and secure?

喜欢而已 提交于 2021-01-28 12:13:17
问题 i tried < Context cookies="true" crossContext="true"> < SessionCookie secure="true" httpOnly="true" /> in context.xml but it is not recognising in jboss4.0 and i tried in java program String sessionid = req.getSession().getId(); resp.setHeader("SET-COOKIE", "JSESSIONID=" + sessionid + ";Path="+req.getContextPath()+"; Secure; Domain="+req.getServerName()+"; HttpOnly"); for 2nd request it not allowing to get session validation object for session so it is showing session expired page and i tried

Edit Cookie HttpOnly value

不想你离开。 提交于 2020-03-03 07:28:10
问题 Due to PCI regulations, most cookies in my application need to be secure and httponly. I have achieved that through this line in my Apache config file: Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure However this breaks part of the application where a single cookie, let's call it foobar, must be read by javascript. Therefore I need to remove the httponly for this cookie only. I've played around with several approaches including mod_rewrite but I can't get the httponly to drop off the cookie.

Do Mobile Browsers send httpOnly cookies via the HTML5 Audio-Tag?

浪子不回头ぞ 提交于 2020-02-13 00:22:16
问题 I try to play some mp3 files via the html5 audio-tag. For the desktop this works great (with Chrome), but when it comes to the mobile browsers (also Chrome (for Android)), there seem to be some difficulties: I protected the stream with some password an therefore the streaming server needs to find a special authentification cookie (spring security remember-me). But somehow the mobile browser doesn't send this cookie when it accesses the mp3-stream via the audio tag. When I enter the stream URL

Do Mobile Browsers send httpOnly cookies via the HTML5 Audio-Tag?

折月煮酒 提交于 2020-02-13 00:22:14
问题 I try to play some mp3 files via the html5 audio-tag. For the desktop this works great (with Chrome), but when it comes to the mobile browsers (also Chrome (for Android)), there seem to be some difficulties: I protected the stream with some password an therefore the streaming server needs to find a special authentification cookie (spring security remember-me). But somehow the mobile browser doesn't send this cookie when it accesses the mp3-stream via the audio tag. When I enter the stream URL

How to get HttpOnly cookie

天涯浪子 提交于 2019-12-13 17:42:46
问题 I need to get the HttpOnly cookies set as Session cookie in my java code . To get non HttpOnly cookies I used Jsoup but now am stucked with HttpOnly cookies ? Note : Don't know if it matters but the site from which I want to get HttpCookies is developed in ASP.net. 回答1: I would expect Jsoup to make those available: Connection connection = Jsoup.connect("http://example.com"); Connection.Response response = connection.execute(); ...then use the cookies map on response . If the HttpOnly cookies

Deleting cookies with JavaScript in Firefox extension

北城以北 提交于 2019-12-13 05:38:07
问题 I have searched a lot for deleting all or a specific cookie with JavaScript. There are lots of posts that say its not possible 100%, or you can not delete cookies with HttpOnly flag. Then the question is how the Cookies Manager+ Firefox extension can delete cookies with JavaScript? Or how the Delete All Cookies From JavaScript Chrome extension lets programmers delete cookies by sending postMessage to his extension? I am developing a Firefox extension and need to delete some cookies from a

Do Mobile Browsers send httpOnly cookies via the HTML5 Audio-Tag?

。_饼干妹妹 提交于 2019-11-30 09:14:22
I try to play some mp3 files via the html5 audio-tag. For the desktop this works great (with Chrome), but when it comes to the mobile browsers (also Chrome (for Android)), there seem to be some difficulties: I protected the stream with some password an therefore the streaming server needs to find a special authentification cookie (spring security remember-me). But somehow the mobile browser doesn't send this cookie when it accesses the mp3-stream via the audio tag. When I enter the stream URL directly to the address bar everything works just fine. While I searched for the lost cookie I found

Logout with HttpOnly cookie

拈花ヽ惹草 提交于 2019-11-30 08:51:22
I can see that HttpOnly cookies are good for security , however they make logging out without server interaction impossible, right? 1 So when the network fails, you can't log out and leave. I can imagine a workaround, but I'd like to ask first does it make sense to handle this case are there any standard solutions for this? 1 Assuming you're actually using them. If by logging out you mean removing the session cookie, then no, you cannot remove HttpOnly cookies from Javascript. It is, however, easy to set up two cookies, one HttpOnly and one insecure, such that only a combination of the two is

Setting an httponly cookie with javax.servlet 2.5

冷暖自知 提交于 2019-11-28 06:25:20
here is a function that sets a cookie: public void addCookie(String cookieName, String cookieValue, Integer maxAge, HttpServletResponse response) { Cookie cookie = new Cookie(cookieName, cookieValue); cookie.setPath("/mycampaigns"); cookie.setSecure(isSecureCookie); cookie.setMaxAge(maxAge); response.addCookie(cookie); } I believe in servlet 3.0, there is a way to do this directly. Unfortunately my organization uses 2.5 and UPGRADING at this juncture IS NOT AN OPTION. is there way to use the response to set the cookie? Here's an example i found online response.setHeader("SET-COOKIE", "[SOME

Logout with HttpOnly cookie

对着背影说爱祢 提交于 2019-11-27 16:11:56
问题 I can see that HttpOnly cookies are good for security, however they make logging out without server interaction impossible, right? 1 So when the network fails, you can't log out and leave. I can imagine a workaround, but I'd like to ask first does it make sense to handle this case are there any standard solutions for this? 1 Assuming you're actually using them. 回答1: If by logging out you mean removing the session cookie, then no, you cannot remove HttpOnly cookies from Javascript. It is,