473,832 Members | 2,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lost session variables

Hello,

I am having some trouble with passing session variables from one aspx page
to another aspx page through an applet.

Let me clarify the problem more ...

I have an aspx page which contains a button on click of which i call an
applet to do some work. Once the applet finishes its job it calls another
aspx page to continue. But the problem is that i am no longer able to access
the old session variables. It seems like the old session is getting killed
and a new session is being created which doesn;t contain the old session
variables.

Now, tell me if there is a way to retain the old session variables when the
second aspx page is called through the applet.

thanks,
Ramendra
Dec 20 '05 #1
2 2201
I am calling the page from the applet using the appletcontext.s howdocument
method. I feel some how a new session is created when i call the page through
the applet and therefore unable to access the session variables.

thanks, Ramendra

"Spam Catcher" wrote:
"=?Utf-8?B?cmFtZW5kcmE =?=" <ra******@discu ssions.microsof t.com> wrote in
news:A5******** *************** ***********@mic rosoft.com:
Now, tell me if there is a way to retain the old session variables
when the second aspx page is called through the applet.


What kind of applet are you using? Java? .NET Winforms?

Is the applet requesting the page using a built in HTTP client? If it is,
then it won't have access to the browser's session cache. Or, does the
applet raise an event which the browser handles?

--
Stan Kee (sp**********@r ogers.com)

Dec 20 '05 #2
I'm facing the same problem, finally resorted to use database and generate a
unique key for that specific task, and passing that to .net through
querystring parameters.

One thing I know is that this did work with 1.1, but as soon as I moved my
project to 2.0, any applets or applications (outside of the browser, ie media
player), when they access the .net pages through an url, it'll be under
another session (another being the request header does not contain the
session id), and it won't be in the same session as the one in the
originating webpage, hence any session variables will be null.

Let me know if there's a solution to this session problem>

"ramendra" wrote:
I am calling the page from the applet using the appletcontext.s howdocument
method. I feel some how a new session is created when i call the page through
the applet and therefore unable to access the session variables.

thanks, Ramendra

"Spam Catcher" wrote:
"=?Utf-8?B?cmFtZW5kcmE =?=" <ra******@discu ssions.microsof t.com> wrote in
news:A5******** *************** ***********@mic rosoft.com:
Now, tell me if there is a way to retain the old session variables
when the second aspx page is called through the applet.


What kind of applet are you using? Java? .NET Winforms?

Is the applet requesting the page using a built in HTTP client? If it is,
then it won't have access to the browser's session cache. Or, does the
applet raise an event which the browser handles?

--
Stan Kee (sp**********@r ogers.com)

Jan 18 '06 #3

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

Similar topics

1
1433
by: Eliyahu Goldin | last post by:
When I run my ASP.NET application first time after deployment, it runs OK. On the second run, when one of my web forms tries to read session variables set in another form, it finds them empty. Nevertheless, if in the same session I set the variables again, they don't get lost anymore. What could be the reason for the session variables to get lost in the beginning of the session? Could it be a size issue? Where can I set amount of storage...
5
1638
by: rich00 | last post by:
i am developing an asp.net web based application using javascript as the server side scripting language. The application makes constant use of an access database and session variables. in a random way, the session variables are lost causing the application to break. The only software on the xp-pro box is iis, .NET framework, office 2003 and 3 com objects: aspmail, aspimage and aspsmartupload. There is no virus detection software. Anybody have...
9
3266
by: AndersBj | last post by:
Hi all, I have a web application that uses State Server for session handling. The web application randomly loses all session variables. The sessions are not always lost, sometimes I can use the application for a day or so, and sometimes the sessions are lost every 5 minutes. I've read some discussions about different things that cause the application to restart and then lose its sessions. But this only occurs when using InProc as...
7
2970
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the statServer timeout to 20 min in the the web.config file. Any ideas why the variables are lost?
4
2876
by: Sarah Marriott | last post by:
Our website contains session variables that are used to validate if a user is logged in etc. We have found that these variables are randomly lost while navigating the website. We set up some basic code (as shown below) which used a meta tag to refresh an aspx page every second. It tests whether there is any content in a session variable, if not then it writes a timestamp to a text file, recreates the data in the variable and continues....
10
2645
by: Nils Erik Dall | last post by:
Hi All I have a problem with my asp code on an iis 6.0 server on windows 2003 web. When I redirect between to asp pages on my web-site, where pageA is in a different virtual directory from pageB the session variables value a lost. I know that it is the session ID there increases. (New session). If I make the same call in the same virtual directory the session variables is not lost. Is it some thing about different application pools? ...
3
1682
by: AlonR | last post by:
Hi, We're experiencing random user sessions losses on our web applications, and are researching for any useful information which may shed light on this problem. Environment: In our company, we're developing a web product based on ASP.NET 2.0, in conjunction with Oracle database over ADO.NET and external COM objects
2
4262
by: maxkumar | last post by:
Hi, I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website has been running for about 1.5 years now. In the past, we used to have random cases of session variables getting lost, but not frequently. However, since the past 2 weeks, I am noticing an alarming increase of such session variables lost cases. My application log shows about 20-30 such errors every day. We have not changed anything at the server for a long...
5
3439
by: google | last post by:
I have a website that has a asp secured members only aria that keeps session variables to check if someone is logged in or not (if session variables are not there then redirect to logon screen) but I also have non members aria and I need a way of asking the user if they want to move away from the members only aria or go back to it. I have used an asp to find out if the page is a non member page and if there is a session variable there. If...
1
1471
by: =?Utf-8?B?U00=?= | last post by:
Background We migrated our Asp.net 1.1 application to Asp.net 2.0 ( just migration ) .. It was working fine in local developer machine and one of our development testing server. When we moved to staging server which is also running on windows 2000 server and we started facing a peculiar issue. We are able to login successfully every time , however , a click on a link to move to a a different page on a hyper link. <asp:HyperLink...
0
10780
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
10498
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
10540
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
9319
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7753
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
5623
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...
0
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3077
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.