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



j-in-uk,
You do not have to specify the login information in the web.config at all.
If you are using the Membership Provider, the login information comes from
your database that you have enabled for Membership and Roles. In ASP.NET 1.1
, you can also perform Forms Authentication against a database.

Here is an article that may help:

http://www.eggheadcafe.com/articles/20060529.asp

Peter


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




"j-in-uk" wrote:

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

  • sun ray server 2.0
    ... I have sun Rays and they do not display the login screen. ... # To specify the system env vars to be exported to the users session ... # The following entries are dynamically created by Sun Ray. ...
    (comp.sys.sun.admin)
  • Re: Login process for line - Newbie!!
    ... I have been trying to understand an aspect of the login local command. ... While it does specify where the login information will be validated ... Should't the local telnet protocol ask for both? ...
    (comp.dcom.sys.cisco)
  • Login as user using Administrator Credentials
    ... You don't have to specify the user's password to login as the user, ... The administrator must specify a password to begin the runas ... completely shadow the user, including GUI, etc. ...
    (microsoft.public.win2000.general)
  • Login process for line - Newbie!!
    ... I have been trying to understand an aspect of the login local command. ... While it does specify where the login information will be validated ... Should't the local telnet protocol ask for both? ...
    (comp.dcom.sys.cisco)
  • Re: how to by-pass forms authentication in a subfolder
    ... Use the element in the web.config to specify something like:- ... > web.config of the app root; so all users must login before they can access ... > any page within the app. ... > has to be the whole folder "testing" must be open to public, ...
    (microsoft.public.dotnet.framework.aspnet.security)