473,568 Members | 2,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

losing value from session

Hi,

I am using ASP.Net with C#. My application is using a control and when
control object is created my application set all the values to that
control. This also contain connection string values. Control add
connection string to session and rest values send to second application
in XML format. Second application does some processing and return back
to control. Here my control have to insert the return data to database
but when I try to access the connection string from session its empty.
Can anyone help me how I can keep the values.

My application is call to second appcation and this second application
is completly seprate application (some jsp/java)

Thanks in advance.

Sukh

Jan 3 '06 #1
6 1874
Maybe better to keep your connection string in the web.config file. But as
to why your session variables are disappearing - how are you calling the
second application? Could it be that a second session is being created?

"Sukh" <su*********@gm ail.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
Hi,

I am using ASP.Net with C#. My application is using a control and when
control object is created my application set all the values to that
control. This also contain connection string values. Control add
connection string to session and rest values send to second application
in XML format. Second application does some processing and return back
to control. Here my control have to insert the return data to database
but when I try to access the connection string from session its empty.
Can anyone help me how I can keep the values.

My application is call to second appcation and this second application
is completly seprate application (some jsp/java)

Thanks in advance.

Sukh

Jan 3 '06 #2
Hi Sosh,
we are keeping con string in web.config file but when appliction
setting the control values so it set con string values at same time.
second appliction calling usin Response.Redire ct ("http..."). its
completely seprate app. and hosted on different server....
I checked its creating second session..
is therea any way to work around...??
Thanks.
Sukh

Jan 3 '06 #3
Hmm. If I understand you correctly:

I take it that the client needs to interact with the JSP app in some way,
and thats why you are using Response.Redire ct, if not (and it just needs to
do some extra server side processing or something) then it might be better
to implement the second app as some kind of webservice, and call it from the
code behind in the first app.

If the client does need to interact with the JSP app, then you would somehow
need to pass a session refference to the JSP app, and have it pass it back
in the correct way when its done. Cookieless sessions may help here (where
the session id is part of the URL), you could possibly construct a URL to
pass control back to with the correct session id format - but it sounds a
bit messy. Maybe someone else knows a better way.

Good luck

"Sukh" <su*********@gm ail.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
Hi Sosh,
we are keeping con string in web.config file but when appliction
setting the control values so it set con string values at same time.
second appliction calling usin Response.Redire ct ("http..."). its
completely seprate app. and hosted on different server....
I checked its creating second session..
is therea any way to work around...??
Thanks.
Sukh

Jan 3 '06 #4
How log is it between when you redirect to the second app and then go back
to the first? It sounds like the first application's session is timing out.

I agree with Sosh's suggestion of converting the second app to a web service
if it has no user interaction component to it.
Otherwise, you might need to increase session timeout, if this is a timing
issue.

"Sukh" <su*********@gm ail.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
Hi,

I am using ASP.Net with C#. My application is using a control and when
control object is created my application set all the values to that
control. This also contain connection string values. Control add
connection string to session and rest values send to second application
in XML format. Second application does some processing and return back
to control. Here my control have to insert the return data to database
but when I try to access the connection string from session its empty.
Can anyone help me how I can keep the values.

My application is call to second appcation and this second application
is completly seprate application (some jsp/java)

Thanks in advance.

Sukh

Jan 3 '06 #5
Hi Marina,
I can't change second appliction coz that's one of our other agency. We
hv to pass some data to them and on the basis to our data they do some
processing and return back to our appl.
Here I am working on a control which is going to use by three differnt
application so I exposing some properties so client application can set
the values.
I wanna to make it configureable.
Its not timeout issue. Actually when application comes back from the
second application it generates new session .

Jan 3 '06 #6
You still did not say whether the second application has any user
interaction/forms or not, though both myself and Sosh asked.

If it does not require user interaction, you can make an HttpWebRequest to
the second application from the server side code of the first one. This is
essentially like the poor man's web service. You make the request to the
second application to a particular page, it returns a response. You process
the response, and continue on - and you never redirected the user anywhere
at all.

"Sukh" <su*********@gm ail.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Hi Marina,
I can't change second appliction coz that's one of our other agency. We
hv to pass some data to them and on the basis to our data they do some
processing and return back to our appl.
Here I am working on a control which is going to use by three differnt
application so I exposing some properties so client application can set
the values.
I wanna to make it configureable.
Its not timeout issue. Actually when application comes back from the
second application it generates new session .

Jan 3 '06 #7

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

Similar topics

1
2769
by: Scott Lyon | last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to rewrite it) an application that is suddenly giving me grief. The reason I say suddenly, is because we're in the process of transitioning the server on which it runs from Microsoft Windows 2000 Server, to 2003 server (going from IIS 5 to IIS 6). This problem hasn't...
4
2156
by: Stephen | last post by:
I have a .NET (1.1 framework) application that is losing a session variable on only a few PC's. The main page is loading up in a frame in a Portal application. On the Page_Load it stores an object with the user id and password into the session. The web page includes a set of links. When the user clicks on a link, another page within...
1
737
by: Werner | last post by:
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can find one? Thanks Werner P.S. Somehow I did not manage to do a followup in Googles newsgroups.
4
2395
by: Keith-Earl | last post by:
I have been writing ASP.NET apps since the RTM build and have never seen this. I built a simple app that uses session variables on my DEV laptop. All runs well. I have a simple toggle routine that checks the status of a Session variable. I keep losing the value of the variable. When I trace the page it is there, but it is gone next...
5
5264
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the sessionstate inproc mode and users are randomly losing their session. I do not believe it is happening across all users at one time. It seems to...
9
2536
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings they have "Always allow session cookies" set to true When the browser connects to the website the first page sets a session variable called...
0
1383
by: Jimmy Reds | last post by:
Hi, Sorry if this appears twice but I post through Google Groups and it had a funny 5 minutes and didn't appear to post this message the first time. I am setting session variables on a page then doing a header/location redirect to a second page however I am losing one of my session variables. Not all of them, just one.
2
1548
by: Jimmy Reds | last post by:
Hi, I am setting session variables on a page then doing a header/location redirect to a second page however I am losing one of my session variables. Not all of them, just one. Here are some details/comments: I am doing a session_start() on ALL of my pages, right at the top of each page
0
1675
by: none | last post by:
Hi, I've got a problem with losing session state in ASP.NET version 2. It does it intermittently - sometimes it tanks - and sometimes it works OK. I've got the ASP.NET state service started - the separate process for state management: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- StateServer...
5
6121
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request scope. Application variables are then accessed in this manner Request.App.<Var>. To begin with I had a simple functioning login system inside a...
0
7693
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
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. ...
1
7660
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...
1
5498
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...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
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...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
932
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...

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.