473,408 Members | 2,813 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,408 software developers and data experts.

Deleting Session Variables after use

Hi all,

Is it prudent to delete items that you've stored in the session if you are
sure that these values won't be needed again?

I'm also wondering if things would be arsed up if the user went to a page
that deleted session information and then used his/her back button to go to
a precious page. Presumably the session data would be gone and my app would
get mighty pissed

Is that the case

Any help would be very greatfully received.

Many thanks

Simon
Nov 18 '05 #1
1 1138
Hi Simon,
Is it prudent to delete items that you've stored in the session if you are
sure that these values won't be needed again?
It's a good practice to delete the session variables once you know that its
no more required, this will help you to free your server memory and hence
making your app more efficient.
I'm also wondering if things would be arsed up if the user went to a page
that deleted session information and then used his/her back button to go to a precious page. Presumably the session data would be gone and my app would get mighty pissed
You can look in the application level error handling, which will redirect
the user to some friendly error page. Also you can check for the session_end
event in the global.asax .

HTH

Regards

Ashish M Bhonkiya
"Simon Harvey" <si**********@the-web-works.co.uk> wrote in message
news:eR**************@TK2MSFTNGP11.phx.gbl... Hi all,

Is it prudent to delete items that you've stored in the session if you are
sure that these values won't be needed again?

I'm also wondering if things would be arsed up if the user went to a page
that deleted session information and then used his/her back button to go to a precious page. Presumably the session data would be gone and my app would get mighty pissed

Is that the case

Any help would be very greatfully received.

Many thanks

Simon

Nov 18 '05 #2

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

Similar topics

6
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an...
6
by: Lina Manjarres | last post by:
Hello, I have a session variable in a login page. Then I go to a form page where I uses the ProfileID and the UserID. Then I go to a result page where I would like to use the UserID as a filter,...
1
by: Simon Harvey | last post by:
Hi all, Is it prudent to delete items that you've stored in the session if you are sure that these values won't be needed again? I'm also wondering if things would be arsed up if the user went...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
3
by: Alan Wang | last post by:
Hi there, Once my application gets complicated and complicated. I found it's really hard to keep track of Session value I am using in my asp.net application. I am just wondering if anyone have...
4
by: osh.sean | last post by:
I'm having a problem and I can't find anything about this anywhere else out there. I'm working on a solution that allows the end user to create folders / upload files to the web server. Some...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
26
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
2
by: Derek Fountain | last post by:
I've got a function that builds a webpage containing a flash animation. As the page goes to the browser, the browser sees the link to the embedded FLV file and opens a new connection to retrieve...
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...
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
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,...
0
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...
0
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...
0
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...

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.