I notice that others have had this problem, after scanning Google, but
I couldn't find any solution.
I have tested my PHP code on both Mac's & PC's and on several browsers
(Firefox, Safari, IE etc etc), with several operating systems.
Everything works fine, except ...
On a couple of Windows XP SP2 PC's session variables in IE6 seem from
time to time to get 'lost'.
More specifically:
I start my session on every page. I get the user to log on, which sets
the appropriate session variables. When I access a couple of
*particular* pages (not all pages) - the first time I access them after
logging on, the session is lost. If I then log back in for a second
time (without closing down the browser) the session variables are
re-set and then if I access those *particular* pages again - the
session is fine!!!!
Now, as mentioned this works fine on 99.99% of browsers, platforms,
whatever - but on the occasional IE6 XP SP2 set-up this occurs. I've
played with the IE6 security settings (although I can't believe this
would make any difference to server side stuff - I was clutching at
straws!)
If anybody has any ideas, experiences etc etc - then please let me
know, as this does seem a slightly bizarre problem, to say the least!
Many thanks in advance! 2 2602 co**********@wh en-it-matters.com wrote: I notice that others have had this problem, after scanning Google, but I couldn't find any solution.
I have tested my PHP code on both Mac's & PC's and on several browsers (Firefox, Safari, IE etc etc), with several operating systems. Everything works fine, except ...
On a couple of Windows XP SP2 PC's session variables in IE6 seem from time to time to get 'lost'.
More specifically:
I start my session on every page. I get the user to log on, which sets the appropriate session variables. When I access a couple of *particular* pages (not all pages) - the first time I access them after logging on, the session is lost. If I then log back in for a second time (without closing down the browser) the session variables are re-set and then if I access those *particular* pages again - the session is fine!!!!
Now, as mentioned this works fine on 99.99% of browsers, platforms, whatever - but on the occasional IE6 XP SP2 set-up this occurs. I've played with the IE6 security settings (although I can't believe this would make any difference to server side stuff - I was clutching at straws!)
If anybody has any ideas, experiences etc etc - then please let me know, as this does seem a slightly bizarre problem, to say the least!
Many thanks in advance!
Anything to do with session_write_c lose() ?
Don't know, haven't used it myself (yet) but i heard session vars got
lost on Mac if one didn't use this. (Not in your case, but you can
always try)
Frizzle.
Thanks for the response. Just cracked it after 1.5 days of trying! Both
the offending files (that broke the session) had hyphens in their file
names. Renamed them to use an underscore and voilla!
These two files were not the only file names within this site to have a
hyphen in their name, but were the only two that broke the session. The
only difference with these files is that they receive variables passed
through a URL (from a flash movie) ... although the pages broke the
session regardless of whether you passed vars or not (i.e. accessing
them through abc.php or abc?var1=test&v ar2=test would both break the
session ... if that makes sense! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: vivek |
last post by:
Do any of you guys have any idea what might be the reason for losing session
variables, i was working on a page where i had to stroe a array in a
session(trust me that was the only 'way' i could imagine doing it), and i am
losing the session variable, its just returning empty values...does any one
has any ideas?
|
by: Scott Lyon |
last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to
rewrite it) an application that is suddenly giving me grief.
The reason I say suddenly, is because we're in the process of transitioning
the server on which it runs from Microsoft Windows 2000 Server, to 2003
server (going from IIS 5 to IIS 6). This problem hasn't really occurred on
the 2000 server machine, but it's happening MUCH more on the new 2003 box
(not...
|
by: Terry |
last post by:
When launching our application with Internet Explorer already opened,
but not pointing to our web server, the session variables disappear.
If you open I.E. after launching our app, it works fine. It also works
fine if you have the option set to 'Reuse Windows for Lauching
Shortcuts' checked in the I.E. properties and launch our app from a
shortcut, but it fails it you launch it from the I.E. favorites or
some other method that won't take...
|
by: James |
last post by:
Session("UserName") is set when someone logs in. Get to a page that
displays a record where you can type a comment. The form has an onSubmit
event that calls a javascript function. That function sets a javascript
variable called beenChecked = true and then calls a PopUp window to spell
check the comment. When it's done spell checking, it calls the submit
method on the form tag of the opening window. The method evaluates that
it's...
|
by: ACaunter |
last post by:
Hi all,
I'm wondering why I keep losing my session variables all the time. I've set
the timeout to be an hour, but for some reason randomly i keep losing
everything..
what could be causing this??
also, is there a way to automatically go back to the login page as soon as
the sessions have expired or are lost.
thanks
| |
by: Jimmy Reds |
last post by:
Hi,
Sorry if this appears twice but I post through Google Groups and it had
a funny 5 minutes and didn't appear to post this message the first
time.
I am setting session variables on a page then doing a header/location
redirect to a second page however I am losing one of my session
variables. Not all of them, just one.
|
by: Jimmy Reds |
last post by:
Hi,
I am setting session variables on a page then doing a header/location
redirect to a second page however I am losing one of my session
variables. Not all of them, just one.
Here are some details/comments:
I am doing a session_start() on ALL of my pages, right at the top of
each page
|
by: Geoff Berrow |
last post by:
I have a page containing a form. The page submits to itself and if the
data validates, stores the posted variables into a database and also
into a session. I then use header to redirect to another page which
fetches the variables from the session array and displays them.
All works fine on the Linux test server. However the production server
is Windoze running PHP 5. reg globals off I am intermittently losing
variables. from the...
|
by: jason.friesen |
last post by:
Hi Folks
I have a custom CMS built in classic ASP that is losing session variables. To wit, I can create a situation where my 'show all the set SVs' test page shows a different set of SVs on each refresh of the browser.
My test page goes a little something like this:
<h1>Checking Session Variables</h1>
<h2>Checking what session variables are set.</h2>
<p>
|
by: chromis |
last post by:
Hi there,
I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request scope. Application variables are then accessed in this manner Request.App.<Var>.
To begin with I had a simple functioning login system inside a subdirectory named admin, this subdirectory had it's own application.cfm, I wasn't sure whether to duplicate...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |