473,804 Members | 3,722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1639
Ok ive done some research into this problem since noone has reposnded.
Ive narrowed down the code to a connection open statement....
con.open(sessio n("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(sessio n("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
7790
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: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION = ""; $_SESSION = ""; echo "<form method='POST' action='login.php'>
7
7230
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 some properties objUserInfo.UserName = txtUserName.text.trim objUserInfo...
3
2615
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 database. To test, I've created two test aspx pages. Test1.aspx contains two buttons. The first button sets values in the session object and then navigates to Test2.aspx. Test2.aspx only displays the values in the session object. The second button...
2
6561
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" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/> Where I have set the timeout property to 20..
17
5219
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 running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh" content="3600">. I also set timeout=120 in the <forms section of web.config to make sure
4
3134
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 therein. Is there, perhaps, a time-out setting somewhere (one of the myriad) that I may have missed (although I have run this sometimes, gone for a cup of tea, and return, done a re-run and it has remembered the session data). I have noted that...
7
2969
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 statServer timeout to 20 min in the the web.config file. Any ideas why the variables are lost?
2
4261
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 lost, but not frequently. However, since the past 2 weeks, I am noticing an alarming increase of such session variables lost cases. My application log shows about 20-30 such errors every day. We have not changed anything at the server for a long...
43
3440
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
9569
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.