473,382 Members | 1,386 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,382 software developers and data experts.

Sessions timeout even with activity, what am I doing wrong?

ok, so I have a .net form using c#. I'm using a session variable to store some data while entering items in the form since each time you hit the page it initiates a new session which equals a row in a data table.

Now the problem is that the sessions are timing out in 20 minutes (default) even if I am actively using the form. Is there some sort of keep alive function that I am missing?
Apr 25 '07 #1
2 1047
TRScheel
638 Expert 512MB
ok, so I have a .net form using c#. I'm using a session variable to store some data while entering items in the form since each time you hit the page it initiates a new session which equals a row in a data table.

Now the problem is that the sessions are timing out in 20 minutes (default) even if I am actively using the form. Is there some sort of keep alive function that I am missing?

Interesting... never had that issue.

Why dont you try putting this in your on page load:

Session["YourVariableName"] = Session["YourVariableName"];

For each page... see if just accessing it fixes it.
Apr 25 '07 #2
actually i think you are right in that it could be the problem. I was starting a session and then not working with it at all since it is still fairly early development. I just changed some things around and have it so that each page now works with the session variables and hopefully the problem goes away.
May 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

22
by: Theo | last post by:
Question for the group The authentication system for the site Im working on seems to function properly and all is good. A session keeps track of everything and a cookie is used to accept or deny...
10
by: Mark H | last post by:
Hey all-- I'm building a database and I basically need to keep out people who aren't authorized, but it's not like I need top security here. I'm just doing basic user/pass of a SQL database, and...
3
by: DarthMacgyver | last post by:
Hello, I recently wrote a survey application. Each question is very similar. The first questions gives me a problem when there are multiple people taking the survey (The Database connection...
2
by: Ik Ben Het | last post by:
Hello, I posted a simular question in the "IIS Security" group but it think it is more usefull to post it here. I want to do something very simpel. Make a part of my website available only...
12
by: D. Shane Fowlkes | last post by:
This is a repost (pasted below). Since my original post, I've double checked the system clock and set all IIS Session Timeout values to 10 minutes. Still ...the problem occurs. I've also...
1
by: Vam$y | last post by:
Hi Iam working on asp.net web application and my web server is running on win2k and data base is MS SQL 2000. Iam getting the below are error very frequently. "Timeout expired. The timeout...
3
by: Dave Smithz | last post by:
Hi there, I have a website where users can log into. This users sessions as I believe most people use when implementing a login section of a website (each php page first checks a valid parameter...
4
by: kpg | last post by:
Hi all, Ah yes, the age old counting session question. sessionstate mode="InProc" timeout="5" Sub Application_Start() Application("ConcurrentUsers") = 0
3
by: John Kotuby | last post by:
Hi all, In a private Web Application (VS2008 VB.NET) the users were complaining that the default session time was too short, because if they stop for a phone call or any distraction, they get...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.