Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 20th, 2006, 08:42 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , .
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
Default Session Variables Randomly Disappeared

Hi,

I am having the "random Session disappearance" problem in my ASP.NET application. Why random? Most of the time the application working as it supposes to be, but occasionally, the Session variable start setting to Nothing by some reason when I am redirecting from one page to another from inside the Java script on the previous page.

Example:
This is the Java script on the page A.ASPX:

function DoSomeWork(numMapX,numMapY) {
    //debugger //TO DO the DEBUGGING
            var sURL;

    sURL = "B.aspx?"+
            "action=Identify&" +
            "X="+numMapX.toString()+"&"+
            "Y="+numMapY.toString()+ "&"+
            "activeLayer=" + document.Form1.activelayer.value+"&"+
            "width="+ (maxx-minx);

       objWin = window.open(sURL, "Identify", "height=430,width=890,scrollbars=yes,resizeable=ye s");

    if (parseInt(navigator.appVersion) >=4)
            objWin.window.focus();
}

As you can see, I am calling the page B.ASPX from the page A.ASPX to open in separate window and do some work. I am creating the Session variable inside the page A.ASPX and using same variable inside the page B.ASPX. Like I've mentioned before, most of the time it works fine, but from time to time it start giving me this "random Session disappearance" problem.
What is interesting, if I am running the application (which is located on the server PC) from my browser, or if I am running the application code from my developer's PC, I have this problem till I reboot my PC.
After that the problem magically disappeared and I can run the application normally (from the server and from my local machine)!?
What is going on? Any suggestions will be appreciated.

-Dmitriy
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Variables Randomly Disappear? Ron Howerton VS.NET 2002/2003 106 July 26th, 2012 02:16 PM
Session Variables Randomly Disappeared Dmitriy .NET Framework 1.x 1 November 30th, 2006 01:24 AM
Session Variables in C# shikha09 C# 1 November 28th, 2006 10:38 AM
Session Variables testsubject Visual Studio 2005 8 March 8th, 2006 04:26 PM
session variables help face Classic ASP Databases 4 September 12th, 2003 03:57 PM



All times are GMT -4. The time now is 07:29 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.