Re: redirect user to login after page has expired asp.net 2.0



Hi,

With forms authentication i have to specify the login etc. in the
web.config file, which I don't really want. This must only be applied
for about three pages of the site and then other pages from the site
also have different expiries. Do i create an
application["HRPages"] ?

Peter wrote:
If you are using Forms Authentication and have set the timeout as you desire,
then if sombody leaves a page open and goes out for a nice spaghetti dinner,
when they come back they should automatically be redirected to the login page.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"j-in-uk" wrote:

Hi,

I'm using the login control for asp.net 2.0.
Once a user logs in I want to set timeouts for certain pages not the
whole app,
so if the page they on has expired I want to redirect the user back to
login page.
I got the login control to work but need to know how to do the rest.
Do I use the Response.Cache.SetCacheability etc.
Any examples?

thanks



.



Relevant Pages

  • Re: Default.aspx - newbie Q`
    ... check and redirect to the ReturnURL or Selected.aspx depending on the case. ... > and replace it with something that takes then straight to the login page. ... >> Curt Christianson ... >>> authentication ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Default.aspx - newbie Q`
    ... check and redirect to the ReturnURL or Selected.aspx depending on the case. ... > and replace it with something that takes then straight to the login page. ... >> Curt Christianson ... >>> authentication ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: doesnt redirect
    ... Look under the Security tab. ... One of them is called the Internet zone and probably the one you are using. ... or better explain what you mean by>> redirect ... I think there are 2 interstitchal pages after submitting those login credentials before you get to the mailbox web page. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • FormsAuthentication does not prevent Back button from showinf accessed pages
    ... when a user logs out i say formsauthentcation.SignOut and ... redirect to login page. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Login problem
    ... redirect the user. ... Samuel Shulman wrote: ... Use either Forms Authentication or Basic Authentication. ... If the user types in the url the Login.aspx file then enters the username and the password, clicks the login button and the form validates the values against values from the database ...
    (microsoft.public.dotnet.framework.aspnet)

Loading