jrun

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">

Need help with multiple URL setup on local CF9/Jrun install

限于喜欢 提交于 2019-12-02 07:51:10
问题 I am running the ColdFusion 9 Developer edition on my local Windows XP machine. I've installed it with the embedded web server, which I believe is JRun. Right now, I can only access web pages at 127.0.0.1:8500/whatever - with all of my apps being placed within separate directories, i.e.: 127.0.0.1:8500/app1, 127.0.0.1:8500/app2, etc. I want to set it up so that I can access each app at: app1.mylocalserver.com, app2.mylocalserver.com, etc. I have edited the hosts file so that these domains

Session ID re-used after call to invalidate

*爱你&永不变心* 提交于 2019-11-29 02:32:40
I've inherited a pretty ancient JSP application (JDK 1.3.1_15) and am attempting to plug a session fixation hole. I'm successfully invalidating the current session after authentication using HttpSession.invalidate() however when the new session is created, the old session ID is re-used. <% // login.jsp if (authenticated) { request.getSession().invalidate(); // create new session and store data HttpSession session = request.getSession(); session.putValue(...); // etc response.sendRedirect("logged-in.jsp"); return; } %> I can see the new session assignment in my HTTP monitor, it's just using the

Oracle: OALL8 is in an inconsistent state

♀尐吖头ヾ 提交于 2019-11-28 13:30:00
As part of upgrading JRun, we are moving from a 1.4 JVM to a 1.6 JVM. Now I am getting a really strange oracle db error: "OALL8 is in an inconsistent state". I have pinned down the problem to insert queries that do not use bind variables at all - all inline parameters. If I run the query without any bind variables, I get the above error. As soon as I replace one of the hard coded values with a bind variable - everything works without error. The other strange bit is that after executing the query, it is in fact committed to the database. I can connect from another session and see the inserted

When ColdFusion is maxing out the CPU, how do I find out what it's chewing/choking on?

纵然是瞬间 提交于 2019-11-28 11:09:23
I'm running CF 9.0.1 on Ubuntu on an "Medium" Amazon EC2 instance. CF has been seizing-up intermittently (several times per day...but notably not isolated to hours of peak usage). At such times, running top gets me this (or something similar): PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+COMMAND 15855 wwwrun 20 0 1762m 730m 20m S 99.3 19.4 13:22.96 coldfusion9 So, it's obviously consuming most of the server resources. The following error has been showing up in my cfserver.log in the lead-up to each seize-up: java.lang.RuntimeException: Request timed out waiting for an available thread to run.

Oracle: OALL8 is in an inconsistent state

佐手、 提交于 2019-11-27 07:44:02
问题 As part of upgrading JRun, we are moving from a 1.4 JVM to a 1.6 JVM. Now I am getting a really strange oracle db error: "OALL8 is in an inconsistent state". I have pinned down the problem to insert queries that do not use bind variables at all - all inline parameters. If I run the query without any bind variables, I get the above error. As soon as I replace one of the hard coded values with a bind variable - everything works without error. The other strange bit is that after executing the