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

Display login screen when session expires

Hello,

My aplication starts with a simple login window (login_page.aspx). Once
the login/password
is validated I redirect to an html which contains 3 frames.
(mywebsite.html)

The web site I am working on has 3 frames: left frame is for the
menu, top frame is where the user enter the search criteria and main
frame
is where the results are displayed.

I want to display the login screen as soon as the Session Timeout
expires,
so I realized I should redirect to the login page when the session
ends.
(Global.asax in VB . Net, I Included code in session_end function)

The problem I am having is that the login window is open in the last
frame used, and
I want to delete the frames. I mean I want to display the login page
in a normal document
without frames in the same active web browser screen.
Thanks for your help.

Leo.

Jun 24 '06 #1
1 2727
leovega wrote:
Hello,

My aplication starts with a simple login window (login_page.aspx). Once
the login/password
is validated I redirect to an html which contains 3 frames.
(mywebsite.html)

The web site I am working on has 3 frames: left frame is for the
menu, top frame is where the user enter the search criteria and main
frame
is where the results are displayed.

I want to display the login screen as soon as the Session Timeout
expires,
so I realized I should redirect to the login page when the session
ends.
(Global.asax in VB . Net, I Included code in session_end function)

The problem I am having is that the login window is open in the last
frame used, and
I want to delete the frames. I mean I want to display the login page
in a normal document
without frames in the same active web browser screen.
Thanks for your help.

Leo.


Hi Leo,

The easiest way to accomplish that is from your login_page.aspx.
Let that page check if it lives in a framesset, and when it does, it
replaces the mainwindow with itself (instead of the mywebsite.html).

you can check to possible parentframe with:

if (parent == self){
// This is true for every toplevel windows
// so do nothing
} else {
// The document is inside a frameset, correct that
parent.location = "login_page.aspx";
}

Of course this trick only works if client has JS enabled.

Regards,
Erwin Moller
Jun 26 '06 #2

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

Similar topics

1
by: Chip | last post by:
I am trying to get sessions to work on a log in screen to give certain users access to certain pages/directories. The problem is that when the login button is pushed (or the enter key pressed) the...
1
by: Wayne Smith | last post by:
Applies to: Microsoft FrontPage 2000, Microsoft Access 2000, IIS 5.0 Operating System: Microsoft Windows 2000 Professional I am trying to protect a portion of a web site by allowing users to...
12
by: chrism | last post by:
Hello, I have a pop-up window that I would like to appear in front of the browser home page when a user opens IE. Problem is, I'd like it to never appear again if the user navigates back to the...
1
by: Burak Kadirbeyoglu | last post by:
Dear ASP.NET Programmers, I am using forms authentication in my web application. I would like the users to be transferred to the login page when the session expires. I am using session state,...
4
by: The Eeediot | last post by:
Hello, folks! I am trying to design a login script / page for a set of administrative functions on my company's Intranet. I need something that is reasonably secure and I've been trying to rack...
12
by: ACaunter | last post by:
Hi all, I was wondering how i could write some code which would automatically open the Login Page once the session has expired? -- AdamPC@hotmail.com
9
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I am using the authentication and authorization mechanism, which its timeout is set to 60 minutes. My application consists of 2 frames - a...
5
by: simon | last post by:
well i have admin panel and agent panel. when i open admin panel and log in it works fine. but when agent opens agent panel in different pc and login and acts something like open a page or so,...
1
by: Kandiman | last post by:
Hiya, i made a asp page, and one of my divs (as a include) is as below. the problem is if the main page is resubmitted, i get logged out again?... heres the code.. i think its on the value=true...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
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
agi2029
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,...
0
isladogs
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...

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.