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 2 2881
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
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*******@yaho o.nospammin.com > wrote in message
news:48******** *************** ***********@mic rosoft.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 page. sadly, it seems
that the page displayed in the iframe and the "hosting"
menu page are different session. i discovered this by
placing response.write(session.sessionid) in both pages.
why is this? is there a way to make the iframe page...
|
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 each cell within it to my code
behind file which generates the HTML to display the data
in a formatted text box, some of which is editable, some
of which is not. The idea here is that the user can look
at a page with a scrolling 'window'. Move...
|
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
loaded into the IFRAME, where can that error condition be trapped?
Thanks
Timo
|
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 links have target=myiFrame, thus opening respective pages in iFrame.
I have put the session timeout period on each page so if some user remains inactive for 10 minutes (all webforms in iframe), he will be redirected to login.aspx page through...
|
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 links have target=myiFrame, thus opening respective pages in iFrame.
I have put the session timeout period on each page so if some user remains inactive for 10 minutes (all webforms in iframe), he will be redirected to login.aspx page through...
| |
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 is, that it doesn't always save the session. When I try to
access it from some computers, I have no problem, the session variable
is stored and I can browse the site in the IFRAME and everything's ok,
but on other computers, the session variable...
|
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 Opera (9.01) does not
refresh the iframe but loads the page for iframe from the cache. If
DisableCaching() function used which disables all kind of caching then
Opera works fine. So, i want to know that if this is the only way to
get the Opera...
|
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 Opera (9.01) does not
refresh the iframe and loads the page for iframe from the cache, so
refreshing the page gets the iframe refreshed with the new page. If
DisableCaching() function used which disables all kind of caching then
Opera works fine. So,...
|
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 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...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |