473,320 Members | 1,909 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,320 software developers and data experts.

Now you see it, now you don't sessions

Hi,

This one has me completely stumped. I have a simple site where I'm
using sessions to keep track of some information across multiple
pages. The trouble is, when I go to a page that displays the
information, sometimes I can see the information and sometimes I
can't. If I refresh the same page, the information may appear or not
in a completely random manner. And nothing is writing to the session
variable anywhere in the page.

I have displayed the information and it is definitely not there when
the information does not appear. I have checked the session id and it
remains the same regardless of whether the info appears or not. The
code runs fine on my local server (PHP 4.3.2) but not the ISP's server
(PHP 4.1.2).

My question is
- What on earth is going on here?
- And if the info is wiped out of the session array on a particular
page request, how does it reappear at some random page refresh?

Any ideas or thoughts from anyone would be greatly appreciated.

Thanks,
Richard.
Jul 17 '05 #1
1 1419
"Eagleprof" <ri*****@communitynet.com.au> wrote in message
news:4f**************************@posting.google.c om...
Hi,

This one has me completely stumped. I have a simple site where I'm
using sessions to keep track of some information across multiple
pages. The trouble is, when I go to a page that displays the
information, sometimes I can see the information and sometimes I
can't. If I refresh the same page, the information may appear or not
in a completely random manner. And nothing is writing to the session
variable anywhere in the page.

I have displayed the information and it is definitely not there when
the information does not appear. I have checked the session id and it
remains the same regardless of whether the info appears or not. The
code runs fine on my local server (PHP 4.3.2) but not the ISP's server
(PHP 4.1.2).

My question is
- What on earth is going on here?
- And if the info is wiped out of the session array on a particular
page request, how does it reappear at some random page refresh?

Any ideas or thoughts from anyone would be greatly appreciated.


Likely a configuration issue. Post a complete, small example of code that
exhibits the problem. Once a code issue has been eliminated, we can examine
configuration/environment.

- Virgil
Jul 17 '05 #2

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...
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...
1
by: slider | last post by:
Hi, I don't know if what I'm trying to achieve is possible but after hours of searching I thought I'd run it by someone. Scenario: index.asp has several divs that load pages via includes....
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.