Solved

Do I need "sessionState" in webconfig when using Forms Authenrtication?

Posted on 2007-03-17
8
534 Views
Last Modified: 2011-10-31
I'm using Forms Authentication. In WebConfig I have:
 <sessionState timeout="30"  mode="InProc"></sessionState>
    </system.web>

But in Forms Authentication also has a cookie timeout like this:
<forms name="appNameAuth" path="/" loginUrl="login.aspx" protection="All" timeout="30">

So do I need that sessionState in webconfig??
0
Comment
Question by:Camillia
  • 3
  • 3
  • 2
8 Comments
 
LVL 22

Expert Comment

by:DarkoLord
ID: 18741893
No, you don't need it. It doesn't have any effect on forms authentication.
0
 
LVL 7

Author Comment

by:Camillia
ID: 18741928
even if I use sessions in the app?? for example, I have an id in a session...
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 18741958
I think the Forms Authentication is only for authentication cookie/session and sessionState for others (the default is 20 minutes)
0
 
LVL 7

Author Comment

by:Camillia
ID: 18741973
so, i do need it if I'm using session in the code...confused!
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 22

Accepted Solution

by:
DarkoLord earned 500 total points
ID: 18742898
If you want to change the default session timeout (20 minutes), then yes, otherwise no
0
 

Expert Comment

by:hongclub
ID: 37045845
i want to do the same thing too.

I set it everywhere in 1 minute, none of them working.
and i thought Web.Config <sessionState timeout="1"/> is the way to go, please advise,

 - Web.config: timeout property in <sessionState>
  - Machine.config: timeout property in <sessionState>
  - IIS - Connection Timeout for the Default Web Site
  - IIS - Session Timeout for MyWebSite set

tommy
0
 

Expert Comment

by:hongclub
ID: 37057952
so what is the solution?
in order to make it one hour:
you do this?
 <sessionState timeout="60"  mode="InProc"></sessionState>
    </system.web>

and also this
<forms name="appNameAuth" path="/" loginUrl="login.aspx" protection="All" timeout="60">

What else? it will do the job to extend to 1 hour?
0
 

Expert Comment

by:hongclub
ID: 37057956
so what is the solution?
in order to make it one hour:
you do this?
 <sessionState timeout="60"  mode="InProc"></sessionState>
    </system.web>

and also this
<forms name="appNameAuth" path="/" loginUrl="login.aspx" protection="All" timeout="60">

What else? it will do the job to extend to 1 hour?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSRS ReportViewer report timeout 7 104
Resolve Dependency Issues 4 47
Point to Current Row Ater Refresh Datagridview 3 20
Vb. Net application freezes 9 30
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now