IE6 session issues - PHP
This is a discussion on IE6 session issues - PHP ; Hi all. I am running an online charity lottery and am having issues with IE6
and sessions.
To fix them, I added the following at the top of each file:
ini_set('session.name', 'tlc');
header("Cache-control: private");
session_start();
....ran a local test in ...
-
IE6 session issues
Hi all. I am running an online charity lottery and am having issues with IE6
and sessions.
To fix them, I added the following at the top of each file:
ini_set('session.name', 'tlc');
header("Cache-control: private");
session_start();
....ran a local test in IE6 worked fine, then noticed more blank entries
coming in. I am not using third-party cookies, the system is built on php
sessions, any more ideas?
--
http://www.web-buddha.co.uk
-
Re: [PHP] IE6 session issues
I recall having a problem with PHP on Windows and IE where however
long the session timeout was, that's how long the session lasted, as
either the server or the browser was never sending/getting the new
cookies.
Well, actually, there was an additional 10-minute offset, as the web
server clock was *OFF* from GTM by 10 minutes, but that's another
story...
Anyway, I quit that job before I got around to really figuring out
what was wrong.
It could easily have been the session code failing to be called
correctly, even though everything else "worked" (as well as anything
works in Windows) okay.
Another fun issue is that if you have, say, a forum installed that
changes the cookie session time limit, and your application AND the
forum are both using the default cookie settings for the name, then
you may find that visitors to the forum have much shorter/longer
sessions than you expected. This is what changing the session_name
will fix.
You'd really have to define your "session issues" and what blank
entries coming in have to do with anything for anybody to help you,
though.
On Sat, February 24, 2007 5:19 am, Dave Goodchild wrote:
> Hi all. I am running an online charity lottery and am having issues
> with IE6
> and sessions.
>
> To fix them, I added the following at the top of each file:
>
> ini_set('session.name', 'tlc');
> header("Cache-control: private");
> session_start();
>
> ...ran a local test in IE6 worked fine, then noticed more blank
> entries
> coming in. I am not using third-party cookies, the system is built on
> php
> sessions, any more ideas?
>
> --
> http://www.web-buddha.co.uk
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
-
Re: [PHP] IE6 session issues
OK. Blank entries means that as date is passed in and validated via forms,
it is then entered into $_SESSION so data can be persistent as the user goes
back and forth. These values are eventually entered into the database and
are blank, whereas the few values that are entered from $_POST (ie credit
card numbers that I don't want to carry around in the session) are fine.
The system works in IE7, FF and Opera and has also worked on my local
version of IE6. I have created a session name and send the
Cache-control
rivate header, which fixed similar issues in the past, but no
success in this case.
>
>
--
http://www.web-buddha.co.uk
-
Re: [PHP] IE6 session issues
On Wed, February 28, 2007 3:21 am, Dave Goodchild wrote:
> OK. Blank entries means that as date is passed in and validated via
> forms,
> it is then entered into $_SESSION so data can be persistent as the
> user goes
> back and forth. These values are eventually entered into the database
> and
> are blank, whereas the few values that are entered from $_POST (ie
> credit
> card numbers that I don't want to carry around in the session) are
> fine.
>
> The system works in IE7, FF and Opera and has also worked on my local
> version of IE6. I have created a session name and send the
> Cache-control
rivate header, which fixed similar issues in the past,
> but no
> success in this case.
We can't begin to guess unless you publish your source code somewhere
online.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?