473,698 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session in WebService with ASP.NET -Visual Studio 2005 Beta 1 - Please Help


De: "Juan Irigoyen" <ju***********@ 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

<sessionState mode="InProc" cookieless="fal se" timeout="20"></sessionState>
[WebMethod(Enabl eSession = true)]
public int GestionTicket Inicio()
{
Session.Add("Se sionNivel", 1);
Session.Add("Se sionTipo", "a");
Session.Add("Se sionAccesos", 0);
return 1;
}

Nov 16 '05 #1
0 1038

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

Similar topics

2
1147
by: Scott Vercuski | last post by:
Hello all, I've got a question about session state. Is it possible to declare and load a session into a session object from the sql server database. Here's the scenario ... I've got a website using SqlServer as the session state manager. I've got a web service that I'd like to pass in the SessionID and have it load the session from the database. I'd just like to know if this is possible.
0
998
by: Wardeaux | last post by:
I want to be able to pass information from one session to another... here's the situation: I have a web app with session variables like "user authenticated". I want to invoke a webservice through a desktop exe and have webservice validate access using the web app session authentication... object is to keep user from having to re-authenticate... I can also then "pass" info to the webservice so that the webservice is smart and can access...
5
1116
by: bluewind44 | last post by:
Hello, all. Is there any case that session vaiables expire before the time-out? Now, I'm developing the UI project that use the webservice project. Ocationally I met the situation that I mentioned before. Thanks.
9
2317
by: mekim | last post by:
Hi All, I have a solution that has a asp.net app project and webservice project in it When I debug the asp.net app...and then terminate it...the webservice is still live...and aspnet_wp.exe is still live w/ it. I have to end task aspnet_wp.exe in order for the webservice part of the solution to end Is there a "right" way to terminate a webservice project when it is called from a asp.net project in a solution?
1
4198
by: Monster | last post by:
is it possible to manually create and destroy a session object in a webservice? My original client and server were done with SOAP in c++ (isapi dll and mfc/atl). I managed to write an intermediate webservice in c# that forwarded calls from the client to the server, but I'm now trying to port the ISAPI soap dll to a true c# webservice, however the client does not support cookies so I can't use the session object. The original soap dll...
2
3603
by: Riga | last post by:
Hi guys, I'm making a webservice that will be used by a pocketpc app. I want to be able to keep an instance of some things (there are 2 collections and possibly a database connection). Is there a way to keep the state of the server? So that these collections are not lost between method calls?
1
1161
by: ^MisterJingo^ | last post by:
Hi all, I have to build a webservice which allows users to login through it (using a ticket system). What I'm unsure on is does the server start a session for remote webservice requests? I ask as I need to generate a ticket to be stored in the application to authenticate valid requests from the client. Thanks
2
1125
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
976
by: ad | last post by:
I use VS2005 to develop asp.net program. I want to get a string from WebService in the Session_Start. But it often wasted a long time to get the msg. I want to new a Session in the application start, and the Session check if a new message form WebService evey 1 hour. How can I new a session in program?
4
1545
by: Redivivus | last post by:
Hi How can i access Sessionstate from another class? Lets say i have webservice where i define Session=1; In my webservice project i have a common class. How can i access Session from this class? Sry. about my poor Englisgh :)
0
8672
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8600
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9156
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
9021
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
8892
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
8860
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7712
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
6518
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
4361
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...

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.