This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2006 > Ended Session Redirect





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Ended Session Redirect
Wally Kolcz

2006-02-24, 10:16 pm

Anyone know how to redirect a expired session to a new page rather than show
a empty recordset error? All my pages contain recordsets. If the page is
idle too long and you go back to make a page move it comes up with a EOF OR
BOF error. How can I get it to go to a login page rather than show an error?

--
Wally Kolcz
Developer / Support
ProjectProofing.com


Les Matthews

2006-02-24, 10:16 pm

If you used DW's standard Login User behavior, then you could also use DW's
Restrict Access to Page behavior to acheive this.
Otherwise, you could do something like below (example in ASP):
<%
If Session("username") = "" Then
Response.Redirect("login.asp")
End If
%>

"Wally Kolcz" <wkolcz@projectproofing.com> wrote in message
news:dtnmps$4cn$1@forums.macromedia.com...
> Anyone know how to redirect a expired session to a new page rather than
> show a empty recordset error? All my pages contain recordsets. If the page
> is idle too long and you go back to make a page move it comes up with a
> EOF OR BOF error. How can I get it to go to a login page rather than show
> an error?
>
> --
> Wally Kolcz
> Developer / Support
> ProjectProofing.com
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews