473,785 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need guidance on users "session data" management.


I need to keep track on user "session data" while still turning session off
as
i do not want users login to expire?
Thanks

JB
Nov 19 '05 #1
5 1874
You could store this information in a cookie written to the user's browser.
If there is much data to be stored you'd store some key in the cookie and
the rest in a database mapped to the key.

hope this helps,
mortb

"jensen bredal" <je***********@ yahoo.dk> wrote in message
news:O8******** *****@TK2MSFTNG P15.phx.gbl...

I need to keep track on user "session data" while still turning session
off as
i do not want users login to expire?
Thanks

JB

Nov 19 '05 #2
Hi JB,

I think you will need to rethink your plan. There is a reason that Sessions
time out. Each Session has a certain amount of memory overhead associated
with it. If Sessions never time out, you've created a custom Memory Leak in
your app. Every time a Session is initiated, it adds to the memory overhead.
And with no way to remove a Session, the memory overhead keeps building
until your system is out of memory.

The reason that Sessions time out is that HTTP is stateless. Each Request
happens "in a vacuum" so to speak. The server has no way of knowing whether
or not the client is even there until it receives a Request. SessionState
was created to emulate statefullness for a given client. It (generally, by
default) creates a Session cookie on the client, which is sent with each
Request, identifying the Session (Memory block) that belongs to that client.
Once the client stops sending Requests, the Session kills itself after the
Timeout interval. The lack of Requests is the only way the server-side app
can know that the client has "gone away" so to speak.

There are methods you can employ to prevent Sessions timing out between
Requests, such as using a META Refresh tag on the client to re-Request the
page after an interval of < Session Timeout. Once the user navigates away
from the page, or closes their browser, it stops sending fresh Requests, and
the Server Session for that client times out and kills itself. Of course,
there are times when you don't want to send a fresh Request for the page, as
it may be in an "internedia te" state (between PostBacks). In a case such as
that, you would use PostBacks to refresh the Session. This can be done using
client-side JavaScript and the JavaScript setTimeout() function.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"jensen bredal" <je***********@ yahoo.dk> wrote in message
news:O8******** *****@TK2MSFTNG P15.phx.gbl...

I need to keep track on user "session data" while still turning session
off as
i do not want users login to expire?
Thanks

JB

Nov 19 '05 #3

"mortb" <mortb1<noospam <@hotmail.com > wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
You could store this information in a cookie written to the user's
browser.
If there is much data to be stored you'd store some key in the cookie and
the rest in a database mapped to the key.

hope this helps,
mortb


Well thanks mortb,
My client uses governements pc and there very stric restriction on what can
be written to these pcs. No cookies allowed .
I described my senario in an early post but will recall it again.

One of my pages allow a pop up window wich in fact is a news bticker. It
holds an advanced dhtml rotator that scolls into database news.
It does refresh every hour.
It should not prompt users fo login again as the news ticker is supposed to
be
continuously running on users desks.

But i have not yet succeeded to achieve this.

My session times out although a refresh is issued before the session
expires.

so what to do in this case?

My purpose is not prompt users with login "again" a la "yahoo.com/mail"

Many thanks
JB
Nov 19 '05 #4
> I think you will need to rethink your plan. There is a reason that
Sessions time out. Each Session has a certain amount of memory overhead
associated with it. If Sessions never time out, you've created a custom
Memory Leak in your app. Every time a Session is initiated, it adds to the
memory overhead. And with no way to remove a Session, the memory overhead
keeps building until your system is out of memory.

Turning session off should hoppefully not creat memory leak?

The reason that Sessions time out is that HTTP is stateless. Each Request
happens "in a vacuum" so to speak. The server has no way of knowing
whether or not the client is even there until it receives a Request.
SessionState was created to emulate statefullness for a given client. It
(generally, by default) creates a Session cookie on the client, which is
sent with each Request, identifying the Session (Memory block) that
belongs to that client. Once the client stops sending Requests, the
Session kills itself after the Timeout interval. The lack of Requests is
the only way the server-side app can know that the client has "gone away"
so to speak.
Well i do refresh before the session is set to expire but, that does not
stop i from expiring.
What i'm i doing wrong?
There are methods you can employ to prevent Sessions timing out between
Requests, such as using a META Refresh tag on the client to re-Request the
page after an interval of < Session Timeout. Once the user navigates away
from the page, or closes their browser, it stops sending fresh Requests,
and the Server Session for that client times out and kills itself. Of
course, there are times when you don't want to send a fresh Request for
the page, as it may be in an "internedia te" state (between PostBacks). In
a case such as that, you would use PostBacks to refresh the Session. This
can be done using client-side JavaScript and the JavaScript setTimeout()
function.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

Nov 19 '05 #5
> Turning session off should hoppefully not creat memory leak?

No, but creating your own custom Session that doesn't time out will.
Well i do refresh before the session is set to expire but, that does not
stop i from expiring.
What i'm i doing wrong?


I have no idea. There's many a slip twixt the cup and the lip. IOW, you have
a bug in your code somewhere, but I don't know where, as I'm not psychic.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"jensen bredal" <je***********@ yahoo.dk> wrote in message
news:up******** ******@TK2MSFTN GP14.phx.gbl...
I think you will need to rethink your plan. There is a reason that
Sessions time out. Each Session has a certain amount of memory overhead
associated with it. If Sessions never time out, you've created a custom
Memory Leak in your app. Every time a Session is initiated, it adds to
the memory overhead. And with no way to remove a Session, the memory
overhead keeps building until your system is out of memory.


Turning session off should hoppefully not creat memory leak?

The reason that Sessions time out is that HTTP is stateless. Each Request
happens "in a vacuum" so to speak. The server has no way of knowing
whether or not the client is even there until it receives a Request.
SessionState was created to emulate statefullness for a given client. It
(generally, by default) creates a Session cookie on the client, which is
sent with each Request, identifying the Session (Memory block) that
belongs to that client. Once the client stops sending Requests, the
Session kills itself after the Timeout interval. The lack of Requests is
the only way the server-side app can know that the client has "gone away"
so to speak.


Well i do refresh before the session is set to expire but, that does not
stop i from expiring.
What i'm i doing wrong?
There are methods you can employ to prevent Sessions timing out between
Requests, such as using a META Refresh tag on the client to re-Request
the page after an interval of < Session Timeout. Once the user navigates
away from the page, or closes their browser, it stops sending fresh
Requests, and the Server Session for that client times out and kills
itself. Of course, there are times when you don't want to send a fresh
Request for the page, as it may be in an "internedia te" state (between
PostBacks). In a case such as that, you would use PostBacks to refresh
the Session. This can be done using client-side JavaScript and the
JavaScript setTimeout() function.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.


Nov 19 '05 #6

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

Similar topics

0
1972
by: Magnus Warker | last post by:
Hi, after searching the web without finding what I'm looking for, I ask for help in this group. I would like to use phplib for authentication and session management. What I need, is a minimal example of how to do the following: - user login and logout, keep track of current user - user administration (new users, ...)
2
4445
by: ben moretti | last post by:
hi i'm learning python, and one area i'd use it for is data management in scientific computing. in the case i've tried i want to reformat a data file from a normalised list to a matrix with some sorted columns. to do this at the moment i am using perl, which is very easy to do, and i want to see if python is as easy. so, the data i am using is some epiphyte population abundance data for particular sites, and it looks like this:
0
5295
by: john bailo | last post by:
This is a (*) PERSISTANT (*) UNRESOLVED (*) ILL EXPLAINED PROBLEM WITH SQL SERVER. THE POSTED WORKAROUNDS DO NOT WORK. THE SUGGESTED SOLUTIONS ARE IDIOTIC AND BASICALLY MAKE EVERYTHING WRITTEN ABOUT DTS USELESS!!!!
5
2457
by: Abhilash.k.m | last post by:
This is regarding the session management using Out of proc session management(SQL SERVER). Among the samples below which one is better to set the session? 1. There are 20 session variables and all of them are being stored into session and accessed from session and individual session object. Example: Session = "XYZ", Session=100, Session="NAME", etc.
1
1473
by: Akshay Kumar | last post by:
Hi All, I was reading Perforance and Scalability Guide and reading Session State Management section. It says use SQL Server when using Web farm . No where are the metrics and the Why's are msiisng. The question that comes to mind is :- 1. When using SQL Server or State Server , will the cost of Network Latency + Serialization + Creation of Session Objects from Serialized data + bottleneck being 1 SQL Database (when App data resides on...
1
2954
by: ReinaldoCL | last post by:
Hello, I'm looking for a posibility to use session objects or cookies in a C# program on Pocket PC, that use a web service method with session enabled property. But the .NET Compact Framework doesn't support session objects and cookies. I're very pleased for an idea about how to implement this, Reinaldo.
0
1593
by: Jamie White | last post by:
I've written a web service for handling user authentication and session management. Now I'm wondering if this was such a good idea for performance and security. This ws will be instantiated and used from classic ASP. Every page is making several calls to the web service. How do you think this will affect performance? The application has 10 to 50 users in it at anytime. -------- Every ASP Page ----------- - Create web service user...
2
2675
by: satisharas | last post by:
Hello, I am trying to write a custom session manager in ASP.NET 2.0 using oracle as the backend. I want to know how the session expires in web garden and we are using NLB (a session can be served by the multiple web servers) Following are few points: 1. How to cleanup session data on Oracle table (on which event need to
0
9481
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
10341
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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
10095
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
9954
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...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
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
5383
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...
1
4054
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

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.