473,406 Members | 2,698 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,406 software developers and data experts.

Sessions and AOL

I have a site where users register and log in. All the data is stored
in a MySQL database.

When a user logs in, the username and password is checked in the
database and if all ok I set a few sessions. Then at the top of each
page I simply check that the sessions have been set and carry on.

All this works fine except for users on AOL. They log in but straight
away are told that they need to log in.

After many weeks of testing different things I'm still confused why it
doesn't work.

I created a some test scripts as follows to try and get sessions
working...

aolphpsetup.php

<?php
ini_set('session.use_trans_sid',1);
ini_set('session.use_cookies',0);
?>

aolinclude.php

<?php
if ($_SESSION[s_check1] == 4) {
$another_check = "1";
} else {
$another_check = "0";
}
?>

aoltest.php

<?php
include("aolphpsetup.php");
session_start();
$_SESSION[s_check1] = "4";
?>
<body>
<form name="form1" method="post" action="aoltest1.php">
<input type="submit" name="Submit" value="Click Me">
</form>
</div>
</body>

aoltest1.php

<?php
include("aolphpsetup.php");
session_start();
header("Location: aoltest3.php?".SID);
?>

aoltest3.php

<?php
include("aolphpsetup.php");
session_start();
include("aolinclude.php");
?>
<body>
$_SESSION[s_check1] = <?php echo $_SESSION[s_check1];?><br>
$another_check = <?php echo $another_check;?>
</body>

When running aoltest.php you should click the button and the output
via aoltest3.php should produce as expected but it doesn't with an AOL
user.

I'm using PHP version 5.0.4 and below is the settings of the sessions
in my phpinfo..

session
Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

Has anyone come across this problem and found a solution.

Many Thanks

Mike

Feb 20 '07 #1
2 1350
>I have a site where users register and log in. All the data is stored
in a MySQL database.

When a user logs in, the username and password is checked in the
database and if all ok I set a few sessions. Then at the top of each
page I simply check that the sessions have been set and carry on.

All this works fine except for users on AOL. They log in but straight
away are told that they need to log in.
Not having examined your code properly nor knowing what is in the included
files do you by any chance check if someone is who they are meant to be by
checking their ip from 1 page to another? If so it could be the cause of
your problem, an AOL user could effectively have a different ip number after
every page load due to the way AOL works.
Feb 20 '07 #2
On 21 Feb, 00:55, "peter" <sub...@flexiwebhost.comwrote:
I have a site where users register and log in. All the data is stored
in a MySQL database.
When a user logs in, the username and password is checked in the
database and if all ok I set a few sessions. Then at the top of each
page I simply check that the sessions have been set and carry on.
All this works fine except for users on AOL. They log in but straight
away are told that they need to log in.

Not having examined your code properly nor knowing what is in the included
files do you by any chance check if someone is who they are meant to be by
checking their ip from 1 page to another? If so it could be the cause of
your problem, an AOL user could effectively have a different ip number after
every page load due to the way AOL works.
All the test files are displayed above including the include file.

No I do not use IP address in any way to track. Please see my test
code in my original post.

Feb 20 '07 #3

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

Similar topics

2
by: The Plankmeister | last post by:
Hi... I'm trying my hardest to understand fully how sessions work and how best to use them. However, all I can find is information that doesn't tell me anything other than that sessions store...
13
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location...
3
by: Maxime Ducharme | last post by:
Hi group We have a problem with sessions in one of our sites. Sessions are used to store login info & some other infos (no objects are stored in sessions). We are using Windows 2000 Server...
3
by: Will Woodhull | last post by:
Hi, I'm new here-- I've been reading the group for a couple of days. Nice group; I like the way n00b33 questions are handled. I've been using a Javascript routine in index.html to determine a...
2
by: Steve Franks | last post by:
According to the docs you tell ASP.NET to use cookieless sessions by setting a value in the config.web file. However, what if I wanted to determine at run time whether or not I wanted to use...
12
by: D. Shane Fowlkes | last post by:
This is a repost (pasted below). Since my original post, I've double checked the system clock and set all IIS Session Timeout values to 10 minutes. Still ...the problem occurs. I've also...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
22
by: magic_hat60622 | last post by:
Hi all. I've got an app that dumps a user id into a session after successful login. the login page is http://www.mydomain.com/login.php. If the user visits pages on my site without the www (i.e.,...
13
Frinavale
by: Frinavale | last post by:
One of the most fundamental topics in web design is understanding how to pass information collected on one web page to another web page. There are many different ways you could do this: Cookies,...
3
Atli
by: Atli | last post by:
Introduction: Sessions are one of the simplest and more powerful tools in a web developers arsenal. This tool is invaluable in dynamic web page development and it is one of those things every...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.