CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 10/10/2007 7:32:12 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 115 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
sablain
Asp.Net User
Formsauthentication timeout10/10/2007 7:32:12 PM

0/0

I am having trouble with the forms authentication timeout feature.  I would like to implement this with my standard login function so that users get redirected to the login page just before their session would timeout because of the sessiontimeout setting.  I have this all setup in the web.config file and after the user logs in I call the formsauthentication.setauthcookie() method and all works fine.  I have the timeout set to a very short time (3 min) so I can make sure the user ends back at the login page if they try to do go to another page after 3 minutes.  However, I get a page cannot be displayed message with the url of the page being called instead of being redirected to the login page.  The page works fine if I try to access it before the timeout has expired.   I believe the web.config setting for the loginURL is correct because if I try to start the site with any other page than the login page I get redirected.  

Am I missing some setting that I need? 

Here is the code from web.config:

<authorization>

<deny users="?"/>

</authorization>

<authentication mode="Forms">

<forms

name=".MMSWEBCookie"

loginUrl="mmslogin.aspx"

protection="All"

timeout="3"

slidingExpiration="true"

path="/">

</forms>

</authentication>

Thanks! 

 

 

XiaoYong Dai –
Asp.Net User
Re: Formsauthentication timeout10/12/2007 8:32:04 AM

0/0

sablain:

 However, I get a page cannot be displayed message with the url of the page being called instead of being redirected to the login page. 

loginUrl="mmslogin.aspx"

Hi

Is it a 404 no found exception?

You may try to specify absolute path for the loginUrl property.

 loginUrl="~/mmslogin.aspx"

 


Best Regards
XiaoYong Dai
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Security, Membership, and Role Management Authors: Stefan Schackow, Pages: 611, Published: 2006
Hacking the Code: ASP.Net Web Application Security Authors: Mark Burnett, James C. Foster, Pages: 447, Published: 2004
Microsoft Visual C# 2005 Unleashed Authors: Kevin Hoffman, Pages: 692, Published: 2006
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Visual Basic .NET Developer's Guide to ASP.NET, XML, and ADO.NET Authors: Jeffrey P. McManus, Chris Kinsman, Pages: 608, Published: 2002
Foundations of Atlas: Rapid Ajax Development with ASP.NET 2.0 Authors: Laurence Moroney, Pages: 314, Published: 2006
Beginning Information Cards and CardSpace: From Novice to Professional Authors: Marc Mercuri, Pages: 428, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning Visual Web Developer 2005 Express: From Novice to Professional Authors: Paul Sarknas, Rick Delorme, Pages: 334, Published: 2005
Professional ASP.NET 1.1 Authors: Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson, Pages: 1337, Published: 2004

Web:
Forms Authentication Timeout - Scott Forsyth's Blog Jul 15, 2006 ... I ran into an issue today where the forms authentication timeout didn't seem to be taking affect. This isn't the first time that I spent ...
Forms Authentication timeout default in ASP.NET 2.0 - ScottGu's Blog NET V1.1 to V2.0 is that the forms authentication timeout value has changed to be ..... I have a session timeout of 120 mins. I have a forms authentication ...
Scott Hanselman's Computer Zen - Accessing the ASP.NET ... So, I figure I'll use something like 'FormsAuthentication.Timeout' - except it doesn't exist. I can get to everything else, just not the Timeout. ...
FormsAuthenticationConfiguration.Timeout Property (System.Web ... Timeout ' Set the Timeout. formsAuthentication.Timeout = _ System.TimeSpan. ... TimeSpan currentTimeout = formsAuthentication.Timeout; // Set the Timeout. ...
Scott Forsyth's Blog : Forms Authentication Timeout Jul 15, 2006 ... Hopefully others find it valuable as well. I ran into an issue today where the forms authentication timeout didn't.
formsauthentication timeout & session timeout Talk about formsauthentication timeout & session timeout.
Forms Authentication timeout in ASP.NET « Menon Kalipurayath on ... Jul 6, 2008 ... Asp.Net the forms authentication timeout value by default is 30 Minutes, this means after 30 minutes of inactivity the application will ...
FormsAuthentication timeout and persistent cookie - Community Server NET 2.0, because of the new behavior of FormsAuthentication, that will use the " timeout" value you set in web.config file also for ...
Forms Authentication timeout - Vikram Lakhotia Sep 22, 2006 ... Forms Authentication timeout and session time out are different and ... [Note the default timeout for Forms Authentication has been changed ...
Handle Session Timeouts and Forms Authentication Timeouts in ASP ... Recently I wrote about session timeout and forms authentication timeout issues. They’re really pretty straight forward when it comes to configuring them. ...




Search This Site:










searching a node in treeview

adduserwizard postback on creation

anonymous signup control question.

how to write a forum with asp!

random

using vbscript class in .net

authentiction requirements and adviced method

why the content of my gridview won't show up when i populate them in onload?

webpartmanager not found

display by exception

moving to visual studio 2005

developing c# web application using live communication server

getting the exception in custom error page!

application("usersonline") ... lists??

timer control

session.isnewsession question

vb.net or c#

dynamicvb.downloads on 2.1.2 not counting downloads

refresh screen without a browser refresh

.dts file and .udl file:

not require framework?

help with website admin tool

directory/project structure problems

dropdownlist help

create new user

array processing getting (object reference not set to instance of an object")

applying css in vwd2008

beta 2.0.2 no exception viewer

real world dotnetnuke - part ii

assembly kills asp.net website!

 
All Times Are GMT