Solved

problem with session on IE

Posted on 2011-02-26
8
429 Views
Last Modified: 2013-12-13
hi
i am facing a bizzare problem:
i have a login mechanism that works great on Firefox,Safari and Chrome. the session array is populated as expected and i am able to login according to a role.

on IE the session array is empty, so the login mechanism just does not work.

it does not make any sense to me but maybe this is the issue:
i am moving my small mvc to html 5 so the only thing that has changed is the views.

now, on the version that still use the html 4 the session array work the same on all browsers even IE.

i am implementing boilerplate for html 5.

not sure if this info is relevant but that is the only change that was made so i gave it.

any idea?

best regards

ron
0
Comment
Question by:derrida
  • 5
  • 3
8 Comments
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 34986907
Only IE9 supports HTML5 previous versions do not. FF 3 has partial support and IIRC Opera supports it 100%
0
 
LVL 1

Author Comment

by:derrida
ID: 34986923
i know but as i mentioned i use boilerplate, and so html render good on all browsers. the issue is the session on IE when its html 5.

does IE does not support sessions when using html 5? that sounds crazy. its a server content.
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 34986930
Good point - I got sidetracked by the HTML5 part.

Although the session is server content, it is usual for the session ID to be stored in a cookie on the client pc. Could the HTML5 element be interefering with cookies in any way?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 1

Author Comment

by:derrida
ID: 34986975
Could the HTML5 element be interefering with cookies in any way?

have any idea how to check it?

when i var_dumping i get empty.
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 34987037
I've done a bit of Googling and there seems to be a lot of questions out there about HTML5 and cookie problems, but there does not seem to be anything definite, no large luminous arrow flashing on and off and saying "Here is the problem" or even "there IS a problem".

The joys of new technologies.....
0
 
LVL 34

Accepted Solution

by:
Beverley Portlock earned 500 total points
ID: 34987173
OK - here are some suggestions:

1) Check the server date. IE is sensitive to the date being served up and if the server date is wrong it could be expiring the cookie with the session in it.

2) Make sure the domain name has only W3C characters - no underscores and such. Most browsers aren't bothered but IE has

3) If a FRAME or IFRAME is in use the problem could be related to something in the other pages or you may need to create a P3P header for IE

0
 
LVL 1

Author Comment

by:derrida
ID: 34987488
you have just saved my sanity:)

number 2 was the reason.

as of this moment i want to get all IE microsoft developers  on a wall and just shoot them one by one
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 34988051
"as of this moment i want to get all IE microsoft developers  on a wall and just shoot them one by one"

Get in the queue please.

;-)
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Wordpress French and English Site 6 82
MVC - procedural PHP 10 40
simple html dom php accessing table/cell  values 4 24
check mysql insert 12 28
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question