473,394 Members | 1,828 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,394 software developers and data experts.

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 2181
I am calling the page from the applet using the appletcontext.showdocument
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******@discussions.microsoft.com> wrote in
news:A5**********************************@microsof t.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**********@rogers.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.showdocument
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******@discussions.microsoft.com> wrote in
news:A5**********************************@microsof t.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**********@rogers.com)

Jan 18 '06 #3

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

Similar topics

1
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....
5
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...
9
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...
7
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...
4
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...
10
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...
3
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...
2
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...
5
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.