Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Session Timeout using frames

Reply
Thread Tools

Session Timeout using frames

 
 
Bilbo
Guest
Posts: n/a
 
      06-18-2004
Hello,

My main ASP.NET interface uses frames. The problem is that once the session
times out (if the user hasn't yet closed the browser), the user is
automatically redirected to the login screen (setup in Web.Config file), but
this occurs for every frame!!! Is there a way to redirect away from the main
interface completely?

Thanks!


 
Reply With Quote
 
 
 
 
Bruno Sirianni
Guest
Posts: n/a
 
      06-18-2004
your frame page is html or aspx?
if it is html try to rename in aspx!



"Bilbo" <> wrote in message
news:...
> Hello,
>
> My main ASP.NET interface uses frames. The problem is that once the

session
> times out (if the user hasn't yet closed the browser), the user is
> automatically redirected to the login screen (setup in Web.Config file),

but
> this occurs for every frame!!! Is there a way to redirect away from the

main
> interface completely?
>
> Thanks!
>
>



 
Reply With Quote
 
 
 
 
Trevor Benedict R
Guest
Posts: n/a
 
      06-19-2004
In the Login Page add this Client Side Code so that you can "Break Away
From Frames"

<Script Language="JavaScript">
if (top != self) {top.location.href = self.location.href;}
</Script -->

Trevor Benedict R
MCSD

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      06-19-2004
Its kinda irritating but I found a solution for it.
Use this javascript so the login page will "bust out of frame".

<script>
if (parent.frames.length > 0) {
parent.location.href = self.document.location
}
</script>

This script make sure that the page will bust out of frame, so you only have
one login page.

Richard

"Bilbo" <> schreef in bericht
news:...
> Hello,
>
> My main ASP.NET interface uses frames. The problem is that once the

session
> times out (if the user hasn't yet closed the browser), the user is
> automatically redirected to the login screen (setup in Web.Config file),

but
> this occurs for every frame!!! Is there a way to redirect away from the

main
> interface completely?
>
> Thanks!
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Session.Timeout and Frames problem =?Utf-8?B?RG91Zw==?= ASP .Net 6 11-16-2005 05:21 PM
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM
web.config session timeout and forms authentication timeout Do ASP .Net 2 11-23-2003 02:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57