473,563 Members | 2,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Urgent!! regarding Session management in WEbservice

hi
I wanted to know whether we can store something in Session objects in
webservice.My windows application calls the webservice and i want the
data to be stored in Session object so that each user can get its own
data.Is this possible in webservice?coz i think it seems to lose the
data each time i call the webservice

Plz help me in this matter.Its urgent!!!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Jul 21 '05 #1
3 1401
hi. interesting question. i believe when you try to access a web service, in
your client code you would start by creating the proxy class and call the
service. if there are return parameters such as data set or any value, you go
ahead and process the return value. after you are done, you tend to destroy
the instance of the proxy class thereby closing the connection to the service
itself. in view of this, i dont think a session object is a good approach to
hold something specific to your user...

"sunnyz" wrote:
hi
I wanted to know whether we can store something in Session objects in
webservice.My windows application calls the webservice and i want the
data to be stored in Session object so that each user can get its own
data.Is this possible in webservice?coz i think it seems to lose the
data each time i call the webservice

Plz help me in this matter.Its urgent!!!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Jul 21 '05 #2
In this case I suggest you use .net remoting... as a rule of thumb.. if you
need state, use remoting, else use webservices
kind regards
Henrik

"Allan" wrote:
hi. interesting question. i believe when you try to access a web service, in
your client code you would start by creating the proxy class and call the
service. if there are return parameters such as data set or any value, you go
ahead and process the return value. after you are done, you tend to destroy
the instance of the proxy class thereby closing the connection to the service
itself. in view of this, i dont think a session object is a good approach to
hold something specific to your user...

"sunnyz" wrote:
hi
I wanted to know whether we can store something in Session objects in
webservice.My windows application calls the webservice and i want the
data to be stored in Session object so that each user can get its own
data.Is this possible in webservice?coz i think it seems to lose the
data each time i call the webservice

Plz help me in this matter.Its urgent!!!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Jul 21 '05 #3
[WebMethod(Enabl eSession=true)] .. that will give you Session support for
the web service method call.

Angel

O:]
"sunnyz" <su****@lycos-dot-com.no-spam.invalid> wrote in message
news:41******** **@Usenet.com.. .
hi
I wanted to know whether we can store something in Session objects in
webservice.My windows application calls the webservice and i want the
data to be stored in Session object so that each user can get its own
data.Is this possible in webservice?coz i think it seems to lose the
data each time i call the webservice

Plz help me in this matter.Its urgent!!!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Jul 21 '05 #4

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

Similar topics

3
3603
by: Jeff | last post by:
We're running a fairly busy and complex e-commerce website. It's an online retailer. We utilize MySQL for most of our site-based dynamic data, and then we use Oracle to access inventory and place orders. We have two seperate machines for database and web application (reasonably powerful dual xeon 3ghz machines, 6gb ram each). We're running...
0
1031
by: Juan Irigoyen | last post by:
De: "Juan Irigoyen" <juan_irigoyen@hotmail.com> Asunto: Session in WebService with ASP.NET - Please Help Fecha: miércoles, 01 de septiembre de 2004 13:34 I have a page asp that call the webmethod, this make the variable of session but when the webmethod return the values stored in webmethod lost. In the web.config have the next code
5
2440
by: Abhilash.k.m | last post by:
This is regarding the session management using Out of proc session management(SQL SERVER). Among the samples below which one is better to set the session? 1. There are 20 session variables and all of them are being stored into session and accessed from session and individual session object. Example: Session = "XYZ", Session=100,...
1
1148
by: sunnyz | last post by:
hi I wanted to know whether we can store something in Session objects in webservice.My windows application calls the webservice and i want the data to be stored in Session object so that each user can get its own data.Is this possible in webservice?coz i think it seems to lose the data each time i call the webservice Plz help me in this...
1
2785
by: trialproduct2004 | last post by:
Hi all, I am having slight confusion regarding memory management in .net. Say suppose i have two application one is in C# and other is in MFC(VC++). Both of this application are using lots of memory. Suppose i run first C# application which has occupied all memory and
1
2942
by: ReinaldoCL | last post by:
Hello, I'm looking for a posibility to use session objects or cookies in a C# program on Pocket PC, that use a web service method with session enabled property. But the .NET Compact Framework doesn't support session objects and cookies. I're very pleased for an idea about how to implement this, Reinaldo.
3
290
by: sunnyz | last post by:
hi I wanted to know whether we can store something in Session objects in webservice.My windows application calls the webservice and i want the data to be stored in Session object so that each user can get its own data.Is this possible in webservice?coz i think it seems to lose the data each time i call the webservice Plz help me in this...
2
1121
by: ad | last post by:
I add an WebService (.asmx) in a WebApplication. I have a line : Session= "This is a Test"; but it always fail in run time. Can I use Session in WebService?
2
2663
by: satisharas | last post by:
Hello, I am trying to write a custom session manager in ASP.NET 2.0 using oracle as the backend. I want to know how the session expires in web garden and we are using NLB (a session can be served by the multiple web servers) Following are few points: 1. How to cleanup session data on Oracle table (on which event need to
0
7659
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
7580
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
7882
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. ...
0
8103
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...
0
7945
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6244
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...
1
5481
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
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
916
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.