473,406 Members | 2,705 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,406 software developers and data experts.

Session timeout handling

I'm not sure if this is the right group to post this, but
this is my problem:

My default.aspx page is a frameset. Mt Login.aspx page is
not. When the session expires, and users are re-directed
to the login page via the AUTHENTICATION section in
web.config, the login page is loaded inside one of the
frames.

How can I load the login page as the top most page? I
tried to add top.location.href script to the login page,
but so luck there.

Thanks
Nov 18 '05 #1
2 1363
SSW
Hi!

Paste the below javascript in Login.aspx. And in Body tag of aspx include
onload="fn();"
<script language=javascript>
function fnLoadOnMainBFrame()
{
if (self.location != top.location) top.location = self.location;
}
</script>

Ur Body tag for aspx should like like one below.
<body onload="fnLoadOnMainBFrame();">

Hope this helps.

Thanks,

sswalia
MCSD MCAD OCA

"Alex DInu" <al*******@hotmail.com> wrote in message
news:0d****************************@phx.gbl...
I'm not sure if this is the right group to post this, but
this is my problem:

My default.aspx page is a frameset. Mt Login.aspx page is
not. When the session expires, and users are re-directed
to the login page via the AUTHENTICATION section in
web.config, the login page is loaded inside one of the
frames.

How can I load the login page as the top most page? I
tried to add top.location.href script to the login page,
but so luck there.

Thanks

Nov 18 '05 #2
For some reason, this code causes my writing the ticket
information, which includes the security, to fail.

If I change the function to:
if (window!= top)
top.location.href=location.href

the ticket does get written, but I loose my frames when it
re-directs to the page that caused the exception in the
first place.

???

Alex
-----Original Message-----
Hi!

Paste the below javascript in Login.aspx. And in Body tag of aspx includeonload="fn();"
<script language=javascript>
function fnLoadOnMainBFrame()
{
if (self.location != top.location) top.location = self.location; }
</script>

Ur Body tag for aspx should like like one below.
<body onload="fnLoadOnMainBFrame();">

Hope this helps.

Thanks,

sswalia
MCSD MCAD OCA

"Alex DInu" <al*******@hotmail.com> wrote in message
news:0d****************************@phx.gbl...
I'm not sure if this is the right group to post this, but this is my problem:

My default.aspx page is a frameset. Mt Login.aspx page is not. When the session expires, and users are re-directed
to the login page via the AUTHENTICATION section in
web.config, the login page is loaded inside one of the
frames.

How can I load the login page as the top most page? I
tried to add top.location.href script to the login page,
but so luck there.

Thanks

.

Nov 18 '05 #3

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

Similar topics

0
by: TaeHo Yoo | last post by:
Hi all, I am prett new in asp.net. We have a project which has classic asp and asp.net scripts. Obviously this project has a bin directory under the root directory. About 80% of this project...
0
by: LearninGuru | last post by:
Hi Folks, I am creating a web service that will be hosted on a web farm. The web service also uses sessions to store user specific data. I have the following doubts about session timeout in a...
5
by: Pavils Jurjans | last post by:
Hello, Is there any way I can intercept the session timeout exception, and 1) Run some code routine, ie log the error and it's context 2) Show nicer output to the user Please do not suggest...
13
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I support several intranet sites one of which had NO STATE. Even though content has ASP extensions, it was all rendered HTML. Site had NO session or application variables being managed. Site had...
3
by: Sems | last post by:
Hi I'm using the Session_End event in the global.asax to detect if a users sessions has ended. Is there any way to tell if the session end is due to it being expired and not abandoned? I'm...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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
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
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
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...

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.