RE: session variables and multiple servers
-Original Message- From: S R [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:29 PM To: CF-Talk Subject: session variables and multiple servers We just changed our website from one being on one server to being on 3 redundant web servers. The problem is, the web farm switches from server to server every 15 minutes to whichever server has the least traffic, which causes me and any other user to have to re-login to password protected areas on the site every 15 minutes. How can I make session variables span across all three servers? Or should I look into other solutions? __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: session variables and multiple servers
Have you guys given thought to real time load management? Which would keep users on the machine they log into? -Original Message- From: S R [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:29 PM To: CF-Talk Subject: session variables and multiple servers We just changed our website from one being on one server to being on 3 redundant web servers. The problem is, the web farm switches from server to server every 15 minutes to whichever server has the least traffic, which causes me and any other user to have to re-login to password protected areas on the site every 15 minutes. How can I make session variables span across all three servers? Or should I look into other solutions? __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: session variables and multiple servers
Use client variables in a database and share the database between servers as their client storage. - Original Message - From: S R [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 5:28 PM Subject: session variables and multiple servers We just changed our website from one being on one server to being on 3 redundant web servers. The problem is, the web farm switches from server to server every 15 minutes to whichever server has the least traffic, which causes me and any other user to have to re-login to password protected areas on the site every 15 minutes. How can I make session variables span across all three servers? Or should I look into other solutions? Thank sal _ Send and receive Hotmail on your mobile device: http://mobile.msn.com __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: session variables and multiple servers
Since Session variables reside in memory on each individual server, they can't be shared across a cluster. What you'll need to do is use client variables instead and store them in a shared datasource. This way all the servers have access to the same information. On a side note, I can't remember if client variables can store complex datatypes like arrays or structures or whether you will have to convert these to WDDX first... Perhaps someone else on the list could elaborate on this! If you are storing simple data types then there are no problems. HTH, Jeff Garza -Original Message- From: S R To: CF-Talk Sent: 3/14/02 6:28 PM Subject: session variables and multiple servers We just changed our website from one being on one server to being on 3 redundant web servers. The problem is, the web farm switches from server to server every 15 minutes to whichever server has the least traffic, which causes me and any other user to have to re-login to password protected areas on the site every 15 minutes. How can I make session variables span across all three servers? Or should I look into other solutions? Thank sal __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: session variables and multiple servers
I use cfwddx to convert complex structures to wddx client strings. Works great. Also helps to deserialize them (test first to make sure they exist) at the top of the request and then re-serialize them at the bottom of the request. That way you don't have to put client.foo all over your code. Just shortens up the keystrokes :) - Original Message - From: Garza, Jeff [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 5:44 PM Subject: RE: session variables and multiple servers Since Session variables reside in memory on each individual server, they can't be shared across a cluster. What you'll need to do is use client variables instead and store them in a shared datasource. This way all the servers have access to the same information. On a side note, I can't remember if client variables can store complex datatypes like arrays or structures or whether you will have to convert these to WDDX first... Perhaps someone else on the list could elaborate on this! If you are storing simple data types then there are no problems. HTH, Jeff Garza -Original Message- From: S R To: CF-Talk Sent: 3/14/02 6:28 PM Subject: session variables and multiple servers We just changed our website from one being on one server to being on 3 redundant web servers. The problem is, the web farm switches from server to server every 15 minutes to whichever server has the least traffic, which causes me and any other user to have to re-login to password protected areas on the site every 15 minutes. How can I make session variables span across all three servers? Or should I look into other solutions? Thank sal __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: session variables and multiple servers
Client variables only store simple values. Complex datatypes would have to be serialized using WDDX or something similar. Chuck McElwee etech solutions inc www.etechsolutions.com -Original Message- From: Garza, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:44 PM To: CF-Talk Subject: RE: session variables and multiple servers Since Session variables reside in memory on each individual server, they can't be shared across a cluster. What you'll need to do is use client variables instead and store them in a shared datasource. This way all the servers have access to the same information. On a side note, I can't remember if client variables can store complex datatypes like arrays or structures or whether you will have to convert these to WDDX first... Perhaps someone else on the list could elaborate on this! If you are storing simple data types then there are no problems. HTH, Jeff Garza -Original Message- From: S R To: CF-Talk Sent: 3/14/02 6:28 PM Subject: session variables and multiple servers We just changed our website from one being on one server to being on 3 redundant web servers. The problem is, the web farm switches from server to server every 15 minutes to whichever server has the least traffic, which causes me and any other user to have to re-login to password protected areas on the site every 15 minutes. How can I make session variables span across all three servers? Or should I look into other solutions? Thank sal __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists