Solved

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

Posted on 2007-03-17
8
531 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Form design in vb.net 7 18
Response.Redirect Open new Form/tab/page? 5 19
VB.Net - For Loop Error 5 25
Jquery autocomplete 10 23
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

12 Experts available now in Live!

Get 1:1 Help Now