?
Solved

ASP Session Timeout Not working.

Posted on 2009-04-29
14
Medium Priority
?
1,175 Views
Last Modified: 2012-06-27
Session.Timeout=240 is not working.

This worked on IIS 5.0 (On windows XP), but not on IIS 6.0 on windows 2003 server.

If I do:
response.write(session.timeout)
it will print 240, but the session is gone after 20 mins.

I've changed the metabase.xml file to 240, as well as updated the Session timeout in the IIS MMC console. Still doesn't work.
0
Comment
Question by:Exibility
  • 8
  • 6
14 Comments
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24270489
May I suggest that you use Cookies instead.
http:Q_24252782.html
View the accepted answer.
This is a customer cookie Login script that I designed that will allow the user to be logged in
For as long as the cookie exist on the computer, or the limit day is reached.

Let me know if you choose this route and need assistance with the code that is supplied.

Have a good one.
Carrzkiss
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24270504
Not the accepted answer but this one http:Q_24252782.html#a23965754
This is the code links and demo

Good Luck
Carrzkiss
0
 
LVL 1

Author Comment

by:Exibility
ID: 24274237
cookies wont work for us.

i really want to know why it worked on iis 5, and why it doesn't work on iis 6. we upgraded from xp pro to a server 2003 and we LOST functionality?
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24274293
Go into the IIS on the 2003 server and reset the connection timeout.
See if that is the issue.

Good Luck
Carrzkiss
0
 
LVL 1

Author Comment

by:Exibility
ID: 24274305
already tried increasing it. you mean from the 120 to something larger?

i also increased the sesion timeout in IIS and the metabase file.
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24274445
0
 
LVL 1

Author Comment

by:Exibility
ID: 24274483
Thanks, but I tried that, AND this: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/042a5242-f5b0-4fe0-b614-18eded88ab7c.mspx?mfr=true

And the other Metabase.xml settings like:
AspSessionTimeout
ran through: http://support.microsoft.com/kb/233477 as well.

0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24274529
I am not found of Sessions as they never do properly in anything that I have done.
So, I am just searching google in hopes that I can find something that someone else might
Have done with the same issue.

If you do not mind me asking.
Why can you not use cookies instead?
As you stated:  >>cookies wont work for us.
0
 
LVL 1

Author Comment

by:Exibility
ID: 24274605
A few systems that access this site can't handle cookies. Old sun systems, some systems that have them disabled for "security reasons" etc...messy.
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24274654
understand.

I really wish that I could be of more assistance for you.
Maybe someone will come in during the evening or early morning with some more information.

Best of luck, I will continue to monitor, and if I can think of anything, I will let you know.

Carrzkiss
0
 
LVL 1

Author Comment

by:Exibility
ID: 24274667
thanks for trying. Sense my frustration yet? ;)
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24274702
yep.
I am having the same frustration over here with creating an XML File from ASP
That I have done about 30 times before, and it WILL NOT WORK NOW!!!!!!
And I do not know why?

Good luck with your issue.
I am going to take a break from mine and maybe an idea will come up.

Carrzkiss
0
 
LVL 1

Accepted Solution

by:
Exibility earned 0 total points
ID: 24276109
ok, finally found it. You have to increase the time for the worker process recycling.
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b31db007-193c-40f7-8909-cfc1c75b4aa6.mspx?mfr=true

I first found it by going over this PPT file on "Best Practices for Transitioning to IIS 6.0 from Earlier Versions": http://support.microsoft.com/servicedesks/Webcasts/wc112002/WC112002.ppt
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24276160
Exibility:
Since you found the information and posted your findings on here.
You can accept yourself as Answer....
This will make it easier for people to find your article if experiancing the same issue as you did.

Good Work.
Carrzkiss
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses

862 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