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

Losing Session Variables in IE6

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!

Mar 1 '06 #1
2 2563

co**********@when-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_close() ?
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.

Mar 1 '06 #2
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&var2=test would both break the
session ... if that makes sense!

Mar 1 '06 #3

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

Similar topics

7
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...
1
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...
2
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....
2
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...
3
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??...
0
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...
2
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...
2
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...
0
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...
5
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...
1
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.