jsessionid

Forcing HttpOnly cookies with JRun/ColdFusion

假如想象 提交于 2019-12-06 00:52:58
问题 We need to ensure that all cookies on a CF7 site are set as HttpOnly. We are using jsessionid to control our sessions, and JRun does not create this as HttpOnly. Whilst it is possible to modify an existing cookie to add this setting, we need to have it set to HttpOnly from the start. Any suggestions? Related Question: Setting Secure flag for HTTPS cookies. 回答1: From: http://www.petefreitag.com/item/764.cfm Running CF 8 or Lower and using Application.cfc <cfcomponent> <cfset this

jmeter - second post request is not using the JSESSIONID created on my log in post request

回眸只為那壹抹淺笑 提交于 2019-12-05 21:27:36
I was successfully able to send a POST request for my log in end point and a JSESSIONID was created. I know the JSESSIONID is kept by the HTTP Cookie Manager that I have at the top of my thread because I see it being used on several GET requests I have in my thread. But when I attempt a POST request it does not use the JSESSIONID and creates its own ID. Below are my settings: Protocol: https Method: POST -Use KeppAlive {"json":"params"} Sampler Result: Thread Name: sim test 1-1 Sample Start: 2014-02-18 15:42:42 EST Load time: 95 Latency: 95 Size in bytes: 239 Headers size in bytes: 239 Body

JQuery jsession cookie is not sent to a server

随声附和 提交于 2019-12-05 09:17:45
I've searched jquery forum, stackoverflow, google, bing, and even yahoo w/o success. Every 10 sec I'm trying to load a text data from logservlet servlet via this JQuery snippet: <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <script type="text/javascript"> var autorefresh = setInterval(function () { $.ajax({ url : "logservlet?devkey=chat", success : function(data) { $("#log_ta").append(data); } }); }, 10000); </script> The problem is, on a server side I don't see a valid session where I try to track the session attributes. The problem seems to be

Cookie vs jsessionid url token precedence

a 夏天 提交于 2019-12-05 04:25:58
问题 how is it with Set-Cookie: VS jsessionid url token precedence ? Apache Tomcat just seem to ignore the token if cookie is set. Isn't it a little inconvenient behavior ? Or is it like this because of security reasons ? this is the url of the request in servlet ....someParam=addFile;jsessionid=7A6ECCF009D4855821BCB45E0B744A7B' and ID of the resulting Session corresponds to the cookie request header param... This means, that it screws up handling of the request. For instance Spring-mvc resolves

JBoss 7.0.1 running without jsessionid in the URL is not working

痞子三分冷 提交于 2019-12-05 01:38:28
Because of some security reasons I deceided to disable session tracking by jsessionid in URL. Before I changed my web.xml to the one below, I had on the first time I visited the page a jsessionid in the url, after clicking the first link, it never appeared again. My web.xml looks like <session-config> <session-timeout>10</session-timeout> <cookie-config> <secure>true</secure> </cookie-config> <tracking-mode>COOKIE</tracking-mode> </session-config> Now I have the jsessionid in the URL, if I click another link on the page it never disappears. It changes on every click. If I try to invoke a JSF

Chrome and JSESSIONID

萝らか妹 提交于 2019-12-04 07:42:29
Following problem with chrome...: I've running an Grails 1.3.7 Application on a Server. I've noticed, when I request a static content (such as non-dynamic html-files) from Chrome, Chrome creates two JSESSIONID-Cookies. The first one when the login-window shows up, and the second after a successfull login. If I want to refresh the page, or request another resource, I've to login again. (I think because Tomcat doesn't understand those two cookies) I've tried it with FF, but FF just just creates one Cookie and its working perfectly. Also, I've ran the app locally, and it works even with chrome

Forcing HttpOnly cookies with JRun/ColdFusion

♀尐吖头ヾ 提交于 2019-12-04 06:03:41
We need to ensure that all cookies on a CF7 site are set as HttpOnly. We are using jsessionid to control our sessions, and JRun does not create this as HttpOnly. Whilst it is possible to modify an existing cookie to add this setting, we need to have it set to HttpOnly from the start. Any suggestions? Related Question: Setting Secure flag for HTTPS cookies. Salazar Mubarak From: http://www.petefreitag.com/item/764.cfm Running CF 8 or Lower and using Application.cfc <cfcomponent> <cfset this.sessionmanagement = true> <cfset this.setclientcookies = false> <cffunction name="onSessionStart">

Can someone who merely knows my current JSESSIONID impersonate / hijack my session (Tomcat 7/Glassfish 3.2))?

橙三吉。 提交于 2019-12-04 05:11:59
I'm looking for a plain English, "for dummies" explanation of how does JSESSIONID work from security aspects Can someone who merely knows my current JSESSIONID impersonate / hijack my session? In what scenarios JSESSIONID will be part of the URL, and is this OWASP #2 security risk (scenario #1) still relevant for latest versions of Tomcat / Glassfish, and if so, what to "turn off/on" to prevent it? Q: Can someone who merely knows my current JSESSIONID impersonate / hijack my session? A: Yes. That's why it is important that your site is careful with cookies. Indeed, if you are worried about

How to generate custom JSESSIONID, based on some hash of user's data in order to replicate session

亡梦爱人 提交于 2019-12-04 03:30:11
问题 Is it possible to override Tomcat's embedded generator of JSESSIONID, to be able to create custom values of this cookie, based on user's login? Why do I need this: I have a load balancer with "sticky sessions", configured to route requests with the same JSESSIONID to the same server, and I want to prevent situation, when same user can start two different sessions on different servers. P.S: all this is about Amazon EC2 回答1: There is a better way to do this: See the tomcat manual on session

Spring Security session JSESSIONID

倖福魔咒の 提交于 2019-12-04 01:48:59
问题 I am currently developing a REST API with Spring Boot for an Angular2 frontend app. I use Spring Security to manage user authentification but I need to store some information in browser session. The problem is that a new JSESSIONID is created at each request. Example: Authentification POST It returns Set-Cookie:JSESSIONID=C367245309E4E80606066FDCFBE0EE43 in response header. A new session is created with user's information Protected REST resource GET : Session is empty and JSESSIONID Cookie is