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

iframe and session troubles

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 first requests, that arrive
to the application are the 2 from the iframes.
now, for each request it generates a new session with a new session-id. but
i only expect one session, because it is the same browser and the same
application.

can someone help me?

thx a lot
iwan
Jan 18 '06 #1
2 2843
This is always an issue since on each frame's initial request, it starts a
separate session. As a general rule:

1. Frames are Evil
2. The Devil created Frames

Having said that, I've seen some workarounds, but they are complex. If you
need session, then a good way to solve the problem is to "not need" Frames.

Just my 2 cents though.

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Iwan Adler" wrote:
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 first requests, that arrive
to the application are the 2 from the iframes.
now, for each request it generates a new session with a new session-id. but
i only expect one session, because it is the same browser and the same
application.

can someone help me?

thx a lot
iwan

Jan 18 '06 #2
how come do I have an iframe that shares the same session variables created
by the page that contains it?? it works just fine!

alex.
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:48**********************************@microsof t.com...
This is always an issue since on each frame's initial request, it starts a
separate session. As a general rule:

1. Frames are Evil
2. The Devil created Frames

Having said that, I've seen some workarounds, but they are complex. If you
need session, then a good way to solve the problem is to "not need"
Frames.

Just my 2 cents though.

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Iwan Adler" wrote:
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 first requests, that
arrive
to the application are the 2 from the iframes.
now, for each request it generates a new session with a new session-id.
but
i only expect one session, because it is the same browser and the same
application.

can someone help me?

thx a lot
iwan

Jan 18 '06 #3

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

Similar topics

0
by: Timmy | last post by:
Hi group, I've inherited some code which has a menu page with an embedded iframe which displays the page corresponding to menu clicks. i was attempting to pass a session variable into the iframe...
1
by: Rhys | last post by:
I have a page which has an IFrame on it. The src of the IFrame is a page with a datagrid on it. The Datagrid has bound template columns. The columns of the datagrid pass the bound data value of...
3
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...
1
by: kambakht | last post by:
I am using an iframe in my index.aspx thus all the webforms in application navigate in this iframe. While main appication links are present on the top of page above iframe, in main window. These...
1
by: kambakht | last post by:
I am using an iframe in my index.aspx thus all the webforms in application navigate in this iframe. While main appication links are present on the top of page above iframe, in main window. These...
1
by: zzzbla | last post by:
Hello, I have a project in which I'm trying to embed one site, that uses session stored variables, inside an IFRAME in another site (which for that matter doesn't even use sessions). Problem...
0
by: spolsky | last post by:
hi, i have the following pages. when form submitted with the field1 value is "ok" then the iframe must be loaded with the text "Page loaded...". This works fine with IE 6 and FireFox(1.5) but...
1
by: spolsky | last post by:
hi, i have the following pages. when form submitted with the field1 value is "ok" then the iframe must be loaded with the text "Page loaded...". This works fine with IE 6 and FireFox(1.5) but...
4
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
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: 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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.