473,394 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Session Problem on AOL Browser

I have problem with AOL browser (IE and Netscape are OK) accessing my Web
site after putting up a load balancer that will go to W1 or W2.

The problem does not happen when there is only Web server and no load
balancer installed.

The problem is on the checking of the session timeout function. This
function will check if the session variable's value is missing. If it is
missing, it will direct to time out page.

How should I solve this problem.
Jul 19 '05 #1
1 3975
There is a problem with load balancing and using session variables. Each
request from the same user may get directed to a different webserver.
Since session variables are local to the webserver itself, a first request
going to one webserver may set a session variable. A second request from the
same user may go to another webserver. On the 2nd webserver, that session
variable doesn't even exist. In fact, that session doesn't even exist (using
the APSESSION cookie).

In order to load balance you have a few options:
1) Rewrite the site so that it does not depend on session variables (use
cookies instead)
2) Configure the load balancer so that all requests from the same IP goes to
the same server. - Sometimes referred to as sticky
In addition to number 2, you will have to find all of AOL's proxy addresses
and send them ALL to the same server. The reason is that multiple requests
from an AOL user may (will) come from different IP addresses.

Number 2 requires a sophisticated load balancer. Number 1 requires more
development work. But solution 2 doesn't solve the problem if one of your
servers goes down. If that happens, users that were using that server get
pushed to the working server without their session variables.


"Jonathan Chong" <jo******@3exp.com> wrote in message
news:Od**************@tk2msftngp13.phx.gbl...
I have problem with AOL browser (IE and Netscape are OK) accessing my Web
site after putting up a load balancer that will go to W1 or W2.

The problem does not happen when there is only Web server and no load
balancer installed.

The problem is on the checking of the session timeout function. This
function will check if the session variable's value is missing. If it is
missing, it will direct to time out page.

How should I solve this problem.

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
14
by: Darrin J Olson | last post by:
I am trying to end a session for a site without having to completely close the browser to end it. When I access the site and log in it works fine. If I log out and in with a different account...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
7
by: ehendrikd | last post by:
hi all i need some clarification on how the php session work in relation to cookies. we have a web site where users need to log in. a few of our users were having troubles with their browser...
4
by: Chris | last post by:
When a request comes into a page on my ASP.net site and a session is not found, I want to detect whether the request is an initial request or if the user did have a session going that has now been...
8
by: ari | last post by:
hey all, i'm trying to make my app as stateless as possible. is it ok to create a dataset and store in viewstate and whenever the user decides to select a from that dataset, to move from...
4
by: rgparkins | last post by:
Hello I am running out of time with a problem I have running PHP 5.04 and Apache 2.0 and really need help :(. I have a page that stores a variable in session but each time I reload that page the...
2
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow session ids that YOUR PHP didn't generate (and aren't...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.