473,508 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session restart on page request (mouseclick) in iFrame

12 New Member
Hey guys,

I'm building an application wich should be used by other websites inside an iFrame. My app stores some sessionvariables, but sometimes in IE (6 and 7) IIS seems to restart the session on each pageload. It does this when I post the page, or request the page, no matter what. My sessionId is changing, wich prevents me from storing for example a shoppingcart in the users session.

Weirdest thing is that it works fine in Firefox (never saw a problem), but in IE it sometimes doesn't work and sometimes it does...

Server is Windows 2003 standard, using IIS
Clients are some different machines running Firefox, IE 6 and IE 7
Applications uses nothing more than ASP, VBScript.

Any ideas?

Thanx in advance!

Arno
Aug 21 '07 #1
6 2333
jhardman
3,406 Recognized Expert Specialist
Arno

the session id should be the same in the main page. Have tried checking there? Does the main page have the same session ID?

Jared
Aug 22 '07 #2
avdbrink
12 New Member
Jared,

No, the main page, containing the IFrame is running on another website. So the two of them have a seperate SessionId.

Any other suggestions?

Thanx,

Arno
Aug 27 '07 #3
jhardman
3,406 Recognized Expert Specialist
Jared,

No, the main page, containing the IFrame is running on another website. So the two of them have a seperate SessionId.

Any other suggestions?

Thanx,

Arno
That could be the problem. Have you tried sending a cookie?

Jared
Aug 27 '07 #4
avdbrink
12 New Member
Jared,

I've done that and in Firefox the cookie stays put, but in IE it disappears. I even printed the session id in the screen and see it changing (increasing) while browsing through my catalogue when using IE, FireFox uses just one session id.

So, just to be sure there's no mistake about that: I don't want to keep the session from the parent frame to exist inside the iframe, it's just the different pages inside the iframe (that link to eachother) that keep skipping to the next session.

Regards,

Arno
Aug 28 '07 #5
avdbrink
12 New Member
Well, thanks for thinking along, but I just found the answer.

It's a IE problem started from IE 6 wich introduced Platform for Privacy Preverences (P3P) Project. This makes my IMframe content "third party content" and sets the privacy setting to Medium, silently rejecting cookies sent from my site.

Adding a custom header to my app telling the brwoser that it's "good" content solved the problem!

More info: http://support.microsoft.com/default...b;en-us;323752

Thanks again!

Arno
Aug 28 '07 #6
jhardman
3,406 Recognized Expert Specialist
Arno,

I hadn't heard of that problem, but I was thinking it was something along those lines. Anyway, I'm glad you found a solution, and thanks for posting it.

Jared
Aug 28 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
7359
by: Karsten Grombach | last post by:
Hi, I'm trying the following: - Imitate a Logon using a Post with HttpWebRequest on remote Webserver (asp 3.0 page using https) - On success redirect to the page (encapsuled in an iframe)...
2
2339
by: M | last post by:
Have you come accross the issue described below or know more about it? We have come accross a situation where session variables are getting lost temporarily but come back again if user reloads...
5
2655
by: Jon Booth | last post by:
I want to write an apsx page that when loaded does not refresh Session.Timeout. It is going to be running in an iframe and refreshing every couple of minutes. example. User has 15 minutes left...
3
9546
by: Timo | last post by:
In javascript code on MyPage.aspx, I set a hidden IFRAME's source url: myframe.location.href = 'someotherpage.aspx'; If the session has timed out, preventing someotherpage.aspx from being...
13
2787
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
2
2860
by: Iwan Adler | last post by:
hi ich have an asp.net application. on the index.aspx page are 2 iframes. these iframes contain a src to another aspx page from my application. the index page is cached from the iis, also the...
11
1903
by: Rolf Rosenquist | last post by:
I have a website with several input forms over a number of pages. The information that the user gives is following through the pages as session variables. It has been working good for two years. ...
17
4948
by: Riaan | last post by:
Hi guys! I have an issue that needs urgent resolution. Imagine this scenario: You have: 1 production server running Windows Server 2003, IIS6 and an instance of MSDE 2000. There is an...
4
4896
by: avdbrink | last post by:
I'm building an application wich should be used by other websites inside an iFrame. My app stores some sessionvariables, but sometimes in IE (6 and 7) IIS seems to restart the session on each...
0
7225
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
7123
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
7324
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
7382
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
7042
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
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4707
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
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.