Re: Session Management when launching "New" Window
- From: "Kevin Frey" <kevin_g_frey@xxxxxxxxxxx>
- Date: Fri, 7 Apr 2006 11:51:24 +1000
I'm not sure I fully understand the terminology of "forms based
authentication" or a custom one we've written ourselves. So to explain, our
user starts at a login page which accepts their credentials and then our
ASP.NET page [currently] creates a session object against our application
server, which is stored in session state (later this shall become more
light-weight and the application server sessions shall be created on the
fly).
Your suggestion is largely what I was thinking (I think) and part of my
question was querying whether the various browsers are going to complain
about window.close( ) being executed in javascript.
Thanks
Kevin
"Tim Payne" <tim@xxxxxxxxxxxxxxxxxx> wrote in message
news:%23f2UuZVWGHA.5012@xxxxxxxxxxxxxxxxxxxxxxx
Are you using forms based authentiaction, or a custom session based one
that you've coded yourself? You could maybe have the code that checks the
session redirect to a different page rather than the login. You could then
redirect to a page with some javascript that checks if it's a child window
and take action accordingly, something like this:
<script language="javascript" type="text/javascript">
<!--
if (window.opener)
{
//window is a child window, close this window
window.close();
}
else
{
//not a child window, implement your logic for redirecting to
the login page here
}
//-->
</script>
The only thing is, I'm not sure if the window.opener is kept accross page
requests, you'd have to try it and see, but something like that might be
worth looking at?
Tim.
.
- References:
- Session Management when launching "New" Window
- From: Kevin Frey
- Re: Session Management when launching "New" Window
- From: Tim Payne
- Session Management when launching "New" Window
- Prev by Date: Re: Quick Parameterized SQL question (inserting text)
- Next by Date: Re: Best way to implement extremely heavy calculation?
- Previous by thread: Re: Session Management when launching "New" Window
- Next by thread: Re: VS 2003 Freezes
- Index(es):
Relevant Pages
|