This should be then set true when session storage is anything but Jee. On Thursday, February 11, 2016, John Moss <[email protected]> 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] > <javascript:_e(%7B%7D,'cvml','openbd%[email protected]');>. > For more options, visit https://groups.google.com/d/optout. > -- Sent from Gmail Mobile -- -- 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.
