By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,983 Members | 1,597 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,983 IT Pros & Developers. It's quick & easy.

iframe and session troubles

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.