Ask a Question related to ASP.NET Security, Design and Development.
-
Stephen Walch #1
Detecting session time out in custom log in page
If I use the following in my web.config
<authentication mode="Forms"> <forms loginUrl="User/UserLogin.aspx"
timeout="10"/> </authentication>
then the page will time out after 10 minutes of inactivity and when the user
next tries to use the app they will see my custom login page. How, then,
can I code my login page to recognize that this is a timed out session
(rather than a new login) and display helpful information about the
situation?
Thanks in advance,
- Steve
Stephen Walch Guest
-
Discovering CSS refs in page custom control resides during design time.
Hi, I have custom controls that let developers apply CSS styles depending on the state of the control. They can do this at run-time and also at... -
Detecting URL Parameters in an HTML page
Is there any way to detect URL parameters in an HTML page? There is a default.htm page on this site that redirect to my CF page. Now I have to... -
Detecting design mode in custom control
Is it pretty safe to assume that if Context is null, then its design mode? if (null == this.Context) { return true; } Naveen Kohli... -
Custom Control design time access to SQLConnection on Web Page
Hi I'm developing a server web control and it requires a SQLConnection object. Is there a way at design time to display a list of available... -
Accessing ADO.NET Data Controls on a Web Page from custom control at Design Time
Hi I'm building a custom control that requires a SQL Connection. I would like to be able to display a list of SQL Connection Data Controls on a... -
Jacob Yang [MSFT] #2
RE: Detecting session time out in custom log in page
Hi Stephen,
I have reviewed your issue. Due to the nature of your issue I need to do
additional research to determine the best way to provide assistance. I will
contact you as soon as possible.
Best regards,
Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C [url]www.microsoft.com/security[/url]
This posting is provided "as is" with no warranties and confers no rights.
Jacob Yang [MSFT] Guest
-
Lauchlan M #3
Re: Detecting session time out in custom log in page
> I have reviewed your issue. Due to the nature of your issue I need to do
Jacob,> additional research
While you're onto this, could you also advise about the converse - how to
force a new SessionID and have it show up in the URL when operating in
cookieless mode (see thread "Ending sessions when running in cookieless
mode")?
Thanks!!
Lauchlan M
Lauchlan M Guest
-
MSFT #4
RE: Detecting session time out in custom log in page
Hi Steve,
The TimeOut attribute here only make sense when we use non-persistent
cookie for the form authentication. When it is timeout, the cookie has a
null value which is same as a new login. We can't decide from it.
Anyway, we may set a session variant when your user first logon, for
example, record the logon in time. This can be an evidence when we check if
it is a new login or get back from timeout.
Luke
Microsoft Online Support
Get Secure! [url]www.microsoft.com/security[/url]
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
MSFT Guest



Reply With Quote

