Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Session variable returns after deletion

Reply
Thread Tools

Re: Session variable returns after deletion

 
 
YouKnowIt
Guest
Posts: n/a
 
      05-12-2004
What code did you use to call your second window?

"LKB" <> wrote in message
news:52266907-DC7B-406B-8E73-...
> I've heard of session variables being lost, but I've got one that keeps

coming back after I've deleted it. I'm using a session variable as a flag
between a popup window and its parent window. The session variable is
created in the popup window with a value of 100. The popup window is then
closed. When this happens, a postback occurs in the parent window. In the
Page Load function of the parent window, there is a check to see if the
session variable is equal to 100. If it is, I save some data and set the
session variable to 0. Then I delete the session variable using
Session.Remove. I followed the values of the session variable in my debugger
and it comes back as 0 and then Nothing as expected.
>
> The problem happens when I've finished with that and I click on another

button. The Page Load function runs again and when it gets to the check for
the session variable, it's still there, and it still equals 100, even though
it was set to zero and then deleted.
>
> Is this behavior caused by my trying to modify a session variable that was

created in a different window? Or is it something else?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Session Variable VS. Own-declared 'Session' Variable chowchho ASP .Net 7 03-28-2008 02:38 PM
if instance variable get initialize after assigning some values or after constructor then when does static variable get initialize Tony Morris Java 3 02-04-2006 08:39 AM
Notification on J2EE session deletion Tim Slattery Java 4 09-29-2005 01:15 PM
javascript confirm fires after deletion instead of before TJS ASP .Net 7 05-18-2005 01:55 AM
Persistent cache contents after deletion =?Utf-8?B?SGFyYWxk?= ASP .Net 0 02-19-2004 02:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57