473,462 Members | 1,128 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Internet Explorer is being very strage (not that i'm suprised)

Hello,

I've written a website using PHP4/Mysql. The login function (that
creates 2 or 3 sessions) does not seem to work in IE, but does in
FireFox.
The strange thing is that when I lower the privacy level in IE it
works. I can then then set the privacy level back to the original
level and it will then work also. I can then set the privacy level two
levels down from 'Block all cookies' and it will still work.

This is how the sessions are set:

session_register("username");

Is this just a problem with IE or must i rewrite code so it will work
with IE?

Thanks very much,

Aug 25 '07 #1
1 1494
ro********@gmail.com wrote:
Hello,

I've written a website using PHP4/Mysql. The login function (that
creates 2 or 3 sessions) does not seem to work in IE, but does in
FireFox.
The strange thing is that when I lower the privacy level in IE it
works. I can then then set the privacy level back to the original
level and it will then work also. I can then set the privacy level two
levels down from 'Block all cookies' and it will still work.

This is how the sessions are set:

session_register("username");

Is this just a problem with IE or must i rewrite code so it will work
with IE?

Thanks very much,
First of all, you don't have "2 or 3 sessions". You have one session
for a browser at a time. You may have multiple variables in the
session, though.

Next, don't use session_register - it's been deprecated. Rather, you
should use the $_SESSION superglobal (and put session_start() at the
beginning of every page using sessions).

As to IE operation - PHP by default uses a cookie to keep track of the
session id. If the browser doesn't accept cookies, you will have a
problem. This is true for not only IE, but any browser.

This is controlled by two settings in your php.ini file:

session.use_cookies indicates whether PHP should use cookies to keep the
session_id. If it is on, PHP will try to use a cookie to keep track of
the session id. If it's off, PHP will append the session id to the URL,
i.e. http://www.example.com?PHPSESSIONID=1234567890

session.use_only_cookies specifies whether to use only cookies (if
session.use_cookies is on). If it is on, PHP will only use cookies. If
it is off, PHP will try to use cookies first, and if not possible, fall
back to the URL modification method mentioned above.

Your behavior is indicative of both of these being turned on.

As to why it works after lowering/raising the privacy level, it probably
will return a cookie, but not accept a new one.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 25 '07 #2

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

Similar topics

12
by: SunshineGirl | last post by:
I'm trying to receive events from a running instance of Internet Explorer. So far I've only been able to receive events from an instance I launch from code, but I need to receive events from all...
10
by: Edlueze | last post by:
I am developing some Data Access Pages (DAP) using Microsoft Access 2003 on Microsoft Windows XP. When I try to open these pages (located on my C: drive), the display of the data access page is...
6
by: pradeep_TP | last post by:
I am facing a strange problem with my web site. Afer reinstalling the web application on the web server, I am getting a dialog box for each page. The dialog box has the following information. ...
1
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that...
11
by: GHUM | last post by:
Hello, I created some rather complex Intranet Application, using lots of JavaScript, DOM-Maninpulation and XMLHTTPRequest communication. I developed on FireFox, with the excellent firebug ......
28
by: Neo Geshel | last post by:
NOTE: PAST EXPERIENCE HAS SHOWN ME THAT MANY ON USENET FAIL TO READ ARTICLES PROPERLY PRIOR TO ANSWERING. I AM LOOKING FOR VERY SPECIFIC INFORMATION, THEREFORE PLEASE READ AND UNDERSTAND...
16
by: John | last post by:
I am looking for VBA code that will work with Access 2003 to enable dragging and dropping a file/folder name from Windows XP Explorer into an Access form's text box. This is a common functionality...
1
by: yawnmoth | last post by:
http://www.frostjedi.com/terra/scripts/demo/download2.php Whenever I get that page, I get the following error: --------------------- Internet Explorer cannot download download2.php from...
15
by: moltendorf | last post by:
I have created a little chat application that seems to work 100% on Mozilla Firefox, Google Chrome, and Safari, (tried it in Opera, and it seems to work, but the cookies are screwing everything up;...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
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...
1
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
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 project—planning, coding, testing,...
0
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...
0
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...

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.