Hi Lin, I don't mess with the Application.cfc in the bluedragon/administrator directory but we looked at it to see what was different from ours. We had clientcookies turned off in our application, and setting it to true solved the problem. I have been running MongoDB sessions for a month now with over eight hundred companies using our site and no problems at all. We moved from Azure to the Google Cloud Platform a month ago and now we can add a non-sticky sessions load balancer to get us to the next level.
Keep in touch! -John Moss On Tuesday, March 22, 2016 at 11:26:54 AM UTC-6, Linjuan Gong wrote: > > Hi John, > > Thank you for posting this. We have the same issue as you had. > > In the bluedragon/administrator/Application.cfc, it already has the > following in OpenBD 3.1. > <cfscript> > this.name = "OpenBDAdminConsole"; > this.sessionmanagement = true; > this.setclientcookies = true; > this.sessiontimeout = CreateTimeSpan(0,0,20,0); > </cfscript> > > Do you keep these settings and added both "<cfset this.setclientcookies = > true />" and "<cfset this.sessionstorage = "mongo://127.0.0.1:27017" />" > to your bluedragon/administrator/Application.cfc? > > Thanks, > > Lin > > On Wednesday, February 10, 2016 at 12:47:10 PM UTC-8, John Moss wrote: >> >> FYI--I figured out what was preventing me from transitioning from J2EE >> sessions to MongoDB. >> >> The following line was added to Application.cfc: >> >> <cfset this.setclientcookies = true /> >> >> After this change it began working as expected. >> >> On Monday, December 28, 2015 at 9:07:17 PM UTC-7, John Moss wrote: >>> >>> I'm trying to convert my session management to use MongoDB and I'm not >>> sure what I'm doing wrong. >>> >>> Here's what I've done so far (Ubuntu 14.04 LTS/Tomcat7/OpenBD 3.1): >>> >>> 1. "sudo apt-get install mongodb" >>> 2. Edit /etc/mongodb.conf and un-comment the line: "#port = 27017" >>> 3. Go to /bluedragon/administrator and change "Use J2EE Sessions" to "No" >>> 4. Edit Application.cfc and add the following line: <cfset >>> this.sessionstorage >>> = "mongo://127.0.0.1:27017" /> >>> 5. "sudo service mongodb restart" >>> 6. "sudo service tomcat7 restart" >>> >>> Everything looks good up to this point and mongo now shows an "openbd" >>> database with a "sessions" collection. >>> My thinking is that if I can get this working correctly on localhost I >>> should be able to move the mongodb to another location, update the ip >>> address and this will allow me to add additional web servers for >>> load-balancing without having to worry about sticky sessions. >>> >>> The problem is that only the first client seems to get a session. >>> Every subsequent attempt seems to fail. >>> >>> I'm a complete novice when it comes to MongoDB but it looks very >>> promising if I can figure it out! >>> Any ideas on what I need to do? >>> >>> Thanks! >>> >>> >>> -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
