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

Users being logged out suddenly.

I have a weird one. My users will be on the system and suddenly get logged
out. I have forms authentication turned on with a 1200 minute logout (I
raised it that high to test this out.) Session timeout is also 1200 minutes.
It's almost acting as if its happening when IIS is cycling memory because it
get's to be to much memory. (I've been working with Microsoft on this problem
and they essentially say that have the system chew up memory is normal and
OK. Just cycle memory.)

The system is on a cluster - I don't know if that would cause a problem. I'm
thinking of changing the memory from inproc to DB but don't know if that will
help any.

Any thoughts?

Jeff.
Nov 5 '07 #1
3 2326
Jeff,
well, session variables at 1200 minutes is very, very long. There are very
good reasons to have timeouts shorter, so that memory can be collected. It
also depends on the items that are stored in the session objects. I've seen
instances where developers were storing large datatables in the session
store for each and every user, eating up absolutely tons of memory.

From what I understand, using a database when doing a clustered web site is
much better becuase a clustered web application can't of course share
session variables between nodes on the cluster.

Have you run some tests to see what how big the objects are getting to be in
the session store for each user? Also make sure you're doing some garbage
collection whenever you can. Even though .Net is managed code, one we still
need to ensure we are disposing of objects and resources as soon as we don't
need them to help speed up garbage collection.
--

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"WinDev" <Wi****@discussions.microsoft.comwrote in message
news:D6**********************************@microsof t.com...
>I have a weird one. My users will be on the system and suddenly get logged
out. I have forms authentication turned on with a 1200 minute logout (I
raised it that high to test this out.) Session timeout is also 1200
minutes.
It's almost acting as if its happening when IIS is cycling memory because
it
get's to be to much memory. (I've been working with Microsoft on this
problem
and they essentially say that have the system chew up memory is normal and
OK. Just cycle memory.)

The system is on a cluster - I don't know if that would cause a problem.
I'm
thinking of changing the memory from inproc to DB but don't know if that
will
help any.

Any thoughts?

Jeff.

Nov 5 '07 #2
On Nov 5, 6:43 pm, WinDev <Win...@discussions.microsoft.comwrote:
I have a weird one. My users will be on the system and suddenly get logged
out. I have forms authentication turned on with a 1200 minute logout (I
raised it that high to test this out.) Session timeout is also 1200 minutes.
It's almost acting as if its happening when IIS is cycling memory because it
get's to be to much memory. (I've been working with Microsoft on this problem
and they essentially say that have the system chew up memory is normal and
OK. Just cycle memory.)

The system is on a cluster - I don't know if that would cause a problem. I'm
thinking of changing the memory from inproc to DB but don't know if that will
help any.

Any thoughts?

Jeff.
your machine keys diffeerent, if you user arives from one node to
another he will not be able to authenticate there (as the key for
authentication-token encryption/decription is different, you have to
configure this in web.config so that both machines are using same key,
this way both of them will be able to use keys comming from client (ie
share clients)
regards
almir
ps
session timeout 1200 is long -very long it is time between two clicks!
if your sessiontimeout is 1h and user post a click ever 45 minutes it
will stay in session forewer

and use some shared storage for session, until now your users were
always on the same machine now they will share machines

Nov 7 '07 #3
Thanks. I've changed over to storing the session in SQLServer and we will
see if it is any better.

"kaza" <ka*****@gmail.comwrote in message
news:11**********************@d55g2000hsg.googlegr oups.com...
On Nov 5, 6:43 pm, WinDev <Win...@discussions.microsoft.comwrote:
>I have a weird one. My users will be on the system and suddenly get
logged
out. I have forms authentication turned on with a 1200 minute logout (I
raised it that high to test this out.) Session timeout is also 1200
minutes.
It's almost acting as if its happening when IIS is cycling memory because
it
get's to be to much memory. (I've been working with Microsoft on this
problem
and they essentially say that have the system chew up memory is normal
and
OK. Just cycle memory.)

The system is on a cluster - I don't know if that would cause a problem.
I'm
thinking of changing the memory from inproc to DB but don't know if that
will
help any.

Any thoughts?

Jeff.

your machine keys diffeerent, if you user arives from one node to
another he will not be able to authenticate there (as the key for
authentication-token encryption/decription is different, you have to
configure this in web.config so that both machines are using same key,
this way both of them will be able to use keys comming from client (ie
share clients)
regards
almir
ps
session timeout 1200 is long -very long it is time between two clicks!
if your sessiontimeout is 1h and user post a click ever 45 minutes it
will stay in session forewer

and use some shared storage for session, until now your users were
always on the same machine now they will share machines

Nov 8 '07 #4

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

Similar topics

4
by: vesely | last post by:
Hi all, I'm currently relying on logged-in users hitting "logout" (logoff) before they leave, in order to terminate the session. With PHP the session filename is in a cookie that lasts for the...
5
by: jjw | last post by:
I have a website that requires users to login. We track them by using sessions. We record the time and date that they login, their session id, the last page they visited, etc in a database. As...
3
by: iwdu15 | last post by:
hi, im writing a program that will get all currently logged on users to my LAN. so far i can only egt all users, logged on or not, using the WMI Searcher object...ive looked on the MSDN website for...
10
by: Lew Barnesson | last post by:
I need to write code which can determine what users are logged on, and which can log users off. Can anyone steer me to such a Namespace/API's? Thanks. - Lew
1
by: Smalley | last post by:
Need some help please. Have this code and for some reason it is not working correctly. I am not receiving errors, just the table is not being populated at all. I have created the tbl and the frm...
6
by: krvrk | last post by:
Hi, I am creating a report for which i need to query a table for total number of users and Concurrent users logged in. The table will contain Username(nvarcar,not null),SessionStart...
8
by: Mike P | last post by:
What would be the best way of counting the number of users who are currently logged on to a website? I am making the users login against a database of valid users. Would the best way be to add a...
3
by: RogueIT | last post by:
Is there a way in 2005 to tell what user is logged into what database on the SQL Server? thanks, Scott
13
by: snowinfo | last post by:
Hi all, any way to count the number of users i have logged into my site? any help/code appreciated, craig
7
MitchR
by: MitchR | last post by:
I am looking to capture the Debug.print of computers connected to the backend of my database. Using the Microsoft example I can see the list of computers connected to my backend. I would like to...
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: 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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.