Solved

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

Posted on 2007-03-17
8
535 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 7

Author Comment

by:Camillia
ID: 18741973
so, i do need it if I'm using session in the code...confused!
0
 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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