specifying the login url in the web.config file should solve your problem.
by doing that the user will be automatically redirected to the login page at
his/her first request to a secured path.
<forms name=".aspxlogin" loginUrl="~/Login.aspx" />
--
Misbah Arefin
> I am using Forms Authentication under Windows Server 2003 in .NET
> 2.0. It appears that the auth ticket is expiring when it's supposed
[quoted text clipped - 17 lines]
> Thanks,
> Christine
christine.nguyen@gmail.com - 05 Feb 2008 22:22 GMT
Hello,
I do specify the login url in web.config, but for whatever reason it
doesn't redirect upon timeout when a secured resource is accessed.
Instead it throws an exception when I try to access and use the value
in HttpContext.Current.User.Identity.Name (which is now empty). This
is why i put code into the onLoad in order to prevent the exception.
Is there a reason why it wouldn't redirect even though I have the
login url specified in web.config?
Thanks,
Christine