Click here to Skip to main content
15,896,063 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: From UTF-8" to "ISO-8859-1 Pin
kubben16-Oct-07 5:38
kubben16-Oct-07 5:38 
AnswerRe: From UTF-8" to "ISO-8859-1 Pin
hifiger200416-Oct-07 5:50
hifiger200416-Oct-07 5:50 
GeneralRe: From UTF-8" to "ISO-8859-1 Pin
kubben16-Oct-07 5:53
kubben16-Oct-07 5:53 
QuestionSession variable expires Pin
hifiger200415-Oct-07 23:24
hifiger200415-Oct-07 23:24 
AnswerRe: Session variable expires Pin
Elizma16-Oct-07 2:08
Elizma16-Oct-07 2:08 
GeneralRe: Session variable expires Pin
hifiger200416-Oct-07 5:06
hifiger200416-Oct-07 5:06 
GeneralRe: Session variable expires Pin
hifiger200416-Oct-07 5:23
hifiger200416-Oct-07 5:23 
AnswerRe: Session variable expires Pin
kubben16-Oct-07 2:37
kubben16-Oct-07 2:37 
In the web config file there is a section that you can put the timeout in:
<sessionState mode="InProc" timeout="30"></sessionState>

In the example above it is 30 minutes.

Now there are some other things to consider. Your application pool that your web site runs under by default recycles every 27 hours. Everytime that happens you will lose your session. First is is always a good idea to change your application pool recycle time to some time, perhaps early in the morning 2am, 3am when users are not using your site. Again if you application pool is getting recycled it will end your session. All of this is assuming that you are using InProc as your Session Mode. That means the Session info is stored on the web server. There are other options which would allow you session to last longer. One option stores session on a different server and the other option stores it in sql server. These each have ther advantages and disadvantages.

I would think long and hard before you decide to increase your session timeout to a large number. I really don't think you want to keep your session around for longer then an hour or so. If someone has not actively used your site in an hour you should timeout their session. They are using up resources that others could be using.

Hope that helps.
Ben
GeneralRe: Session variable expires Pin
hifiger200416-Oct-07 5:06
hifiger200416-Oct-07 5:06 
GeneralRe: Session variable expires Pin
kubben16-Oct-07 5:35
kubben16-Oct-07 5:35 
GeneralRe: Session variable expires Pin
hifiger200417-Oct-07 1:16
hifiger200417-Oct-07 1:16 
GeneralRe: Session variable expires Pin
kubben17-Oct-07 1:33
kubben17-Oct-07 1:33 
GeneralRe: Session variable expires Pin
hifiger200417-Oct-07 2:30
hifiger200417-Oct-07 2:30 
GeneralRe: Session variable expires Pin
kubben17-Oct-07 2:45
kubben17-Oct-07 2:45 
GeneralRe: Session variable expires Pin
hifiger200417-Oct-07 3:14
hifiger200417-Oct-07 3:14 
GeneralRe: Session variable expires Pin
kubben17-Oct-07 3:17
kubben17-Oct-07 3:17 
AnswerRe: Session variable expires Pin
hifiger200419-Oct-07 7:02
hifiger200419-Oct-07 7:02 
GeneralRe: Session variable expires Pin
hifiger200416-Oct-07 5:23
hifiger200416-Oct-07 5:23 
QuestionSharepoint server 2007 Pin
nompat15-Oct-07 22:39
nompat15-Oct-07 22:39 
AnswerRe: Sharepoint server 2007 Pin
SHatchard16-Oct-07 21:31
SHatchard16-Oct-07 21:31 
QuestionLooking for a Javascript Example... Pin
Bhicken7815-Oct-07 10:44
Bhicken7815-Oct-07 10:44 
AnswerRe: Looking for a Javascript Example... Pin
led mike15-Oct-07 11:06
led mike15-Oct-07 11:06 
AnswerRe: Looking for a Javascript Example... Pin
Elizma16-Oct-07 1:53
Elizma16-Oct-07 1:53 
QuestionWeb Service -DLL bound deployment Pin
Bob Enein15-Oct-07 5:18
Bob Enein15-Oct-07 5:18 
Questionasp:CustomValidator Control Pin
Brendan Vogt14-Oct-07 23:57
Brendan Vogt14-Oct-07 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.