?
Solved

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

Posted on 2007-03-17
8
Medium Priority
?
542 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

 
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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

762 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