473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

asp.net session lost after 45 seconds

Im having an issue with an ecommerce app i just moved to ipower.com
hosting. The session is getting lost after 45 seconds. It happens like
clockwork as ive timed it at least a dozen times. Ill log into the app
then browse to a static content page. Ill then sit there refreshing the
page every few seconds until finally the session is lost after 45
seconds.

The app had no problems on my development server but now that we moved
it to a permanent host the session wont stay. I also did a test using
one aspx file to set a session var then rediretc to another aspx file
to display the session var. This seems to work without being lost. So i
think somthing in my app is causing an application restart or something
is killing the session.

I dont have any ideas why and theres too much code to try and post it
on here. Ive set the session timeout to 20 minutes int he web config
file and the server just ignores it.

Any ideas what im doing wrong??

FYI...this was my first .net app and i ported the classic asp version
over. so theres some stuff like apartment threaded recordsets and
aspcompat directives used.

Thanks a ton for any help

Nov 19 '05 #1
3 1627
Ok ive done some research into this problem since noone has reposnded.
Ive narrowed down the code to a connection open statement....
con.open(session("dsn"))

Im useing classic asp connection and recordset objects since .net didnt
have enough functionality comparable to what i had done before porting
the app over. If i remove this open connection the session persists. If
i put in this one line of code the session keeps getting dumped. One
confusing thing though is my session id is always there and never
changes.

Please does anyone have any ideas????

Nov 19 '05 #2
Ok ive done some research into this problem since noone has reposnded.
Ive narrowed down the code to a connection open statement....
con.open(session("dsn"))

Im useing classic asp connection and recordset objects since .net didnt
have enough functionality comparable to what i had done before porting
the app over. If i remove this open connection the session persists. If
i put in this one line of code the session keeps getting dumped. One
confusing thing though is my session id is always there and never
changes.

Please does anyone have any ideas????

Nov 19 '05 #3
Actually its doesnt matter that its an adodb connection. I also tried
using an oledb connection native to asp.net and its just the mere fact
of opening a connectio to the db that is causing the session to be
dumped.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
7
by: Billy Jacobs | last post by:
I am having a problem with my session variable being set to Null for no apparent reason. I am declaring it like the following when the user logs in. dim objUserInfo as new clsUserInfo 'Set...
3
by: William | last post by:
Hi I have an ASP.NET application that connects to an Access database. Everything works fine except for the Session object. Data in the session object is lost after I've made a call to the...
2
by: Lars Netzel | last post by:
There's a setting in the IIS where I have set Enabled Session Timeout to 20 minutes Then there's a setting in the WebConfig file.. <sessionState mode="InProc"...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
4
by: Eric Porter | last post by:
Problem : I have a Web Server which is session enabled. I have a method within that server which if I call it repeatedly, it seems to forget the session every six re-tries, and all the data...
7
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the...
2
by: maxkumar | last post by:
Hi, I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website has been running for about 1.5 years now. In the past, we used to have random cases of session variables getting...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.