473,407 Members | 2,676 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,407 software developers and data experts.

Releasing A Session

Scenario.

PDA connecting to a web service method using a reference on XP professional ( IIS ). XP limited to 10 sessions. How can the session be released once the method has finished. IE to log off the user as this prevents others using the service.

Thanx

Nov 18 '05 #1
8 1097
i am not aware of the number of session one can have on iis 5.1

but y do you need session for a webservice ? webservice is meant for stateless calls...

--

Regards,

HD
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in message news:uf**************@TK2MSFTNGP09.phx.gbl...
Scenario.

PDA connecting to a web service method using a reference on XP professional ( IIS ). XP limited to 10 sessions. How can the session be released once the method has finished. IE to log off the user as this prevents others using the service.

Thanx

Nov 18 '05 #2
the web method is being called from the pda, once called it uses up a session. Question is how to release it ?


"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:eQ*************@tk2msftngp13.phx.gbl...
i am not aware of the number of session one can have on iis 5.1

but y do you need session for a webservice ? webservice is meant for stateless calls...

--

Regards,

HD
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in message news:uf**************@TK2MSFTNGP09.phx.gbl...
Scenario.

PDA connecting to a web service method using a reference on XP professional ( IIS ). XP limited to 10 sessions. How can the session be released once the method has finished. IE to log off the user as this prevents others using the service.

Thanx

Nov 18 '05 #3
The error is defined as: The request failed with HTTP status 403: Access Forbidden.

The issue we have in light of this restriction, is that we can find no explicit way to release a session in IIS from the PDA application when it is finished making the web method call. So the example would be;

In the PDA app create a new reference to the Web Service
Call the web method
As there is no dispose obviously available in the compact framework for the web service, contrary to a Windows application, we have tried calling a garbage collector collect.
This does not seem to release our IIS session reference there and then. Even doing the equivalent using a windows application, and calling a dispose on the web reference does not clear up the session.
We need to explicitly be able to create the Web reference, call the web method and explicitly there and then free up the IIS session by releasing the session reference.

How can this be done? I have tried playing around with IIS settings, but not with not much success.

If we close the PDA application then the session is immediately released. This is the behaviour we want to programatically be able to produce!
Nov 18 '05 #4
in your webserver's web.config... set the mode in your sessionState to none

have a look at http://msdn.microsoft.com/library/de...atesection.asp

for more information on <sessionState> element

--

Regards,

HD
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in message news:uP**************@TK2MSFTNGP10.phx.gbl...
The error is defined as: The request failed with HTTP status 403: Access Forbidden.

The issue we have in light of this restriction, is that we can find no explicit way to release a session in IIS from the PDA application when it is finished making the web method call. So the example would be;

In the PDA app create a new reference to the Web Service
Call the web method
As there is no dispose obviously available in the compact framework for the web service, contrary to a Windows application, we have tried calling a garbage collector collect.
This does not seem to release our IIS session reference there and then. Even doing the equivalent using a windows application, and calling a dispose on the web reference does not clear up the session.
We need to explicitly be able to create the Web reference, call the web method and explicitly there and then free up the IIS session by releasing the session reference.

How can this be done? I have tried playing around with IIS settings, but not with not much success.

If we close the PDA application then the session is immediately released. This is the behaviour we want to programatically be able to produce!
Nov 18 '05 #5
sorry mode = "Off"

--

Regards,

HD
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
in your webserver's web.config... set the mode in your sessionState to none

have a look at http://msdn.microsoft.com/library/de...atesection.asp

for more information on <sessionState> element

--

Regards,

HD
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in message news:uP**************@TK2MSFTNGP10.phx.gbl...
The error is defined as: The request failed with HTTP status 403: Access Forbidden.

The issue we have in light of this restriction, is that we can find no explicit way to release a session in IIS from the PDA application when it is finished making the web method call. So the example would be;

In the PDA app create a new reference to the Web Service
Call the web method
As there is no dispose obviously available in the compact framework for the web service, contrary to a Windows application, we have tried calling a garbage collector collect.
This does not seem to release our IIS session reference there and then. Even doing the equivalent using a windows application, and calling a dispose on the web reference does not clear up the session.
We need to explicitly be able to create the Web reference, call the web method and explicitly there and then free up the IIS session by releasing the session reference.

How can this be done? I have tried playing around with IIS settings, but not with not much success.

If we close the PDA application then the session is immediately released. This is the behaviour we want to programatically be able to produce!
Nov 18 '05 #6
Thanks - we'll try it

--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:eV**************@tk2msftngp13.phx.gbl...
sorry mode = "Off"

--

Regards,

HD
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
in your webserver's web.config... set the mode in your sessionState to none

have a look at http://msdn.microsoft.com/library/de...atesection.asp

for more information on <sessionState> element

--

Regards,

HD
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in message news:uP**************@TK2MSFTNGP10.phx.gbl...
The error is defined as: The request failed with HTTP status 403: Access Forbidden.

The issue we have in light of this restriction, is that we can find no explicit way to release a session in IIS from the PDA application when it is finished making the web method call. So the example would be;

In the PDA app create a new reference to the Web Service
Call the web method
As there is no dispose obviously available in the compact framework for the web service, contrary to a Windows application, we have tried calling a garbage collector collect.
This does not seem to release our IIS session reference there and then. Even doing the equivalent using a windows application, and calling a dispose on the web reference does not clear up the session.
We need to explicitly be able to create the Web reference, call the web method and explicitly there and then free up the IIS session by releasing the session reference.

How can this be done? I have tried playing around with IIS settings, but not with not much success.

If we close the PDA application then the session is immediately released. This is the behaviour we want to programatically be able to produce!
Nov 18 '05 #7
Hi,

did you actually give it a try ? would like to know whether it worked or not
!!!

--

Regards,

HD
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in message
news:u6***************@TK2MSFTNGP12.phx.gbl...
Thanks - we'll try it

--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:eV**************@tk2msftngp13.phx.gbl...
sorry mode = "Off"

--

Regards,

HD
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
in your webserver's web.config... set the mode in your sessionState to none

have a look at
http://msdn.microsoft.com/library/de...atesection.asp

for more information on <sessionState> element

--

Regards,

HD
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
The error is defined as: The request failed with HTTP status 403: Access
Forbidden.

The issue we have in light of this restriction, is that we can find no
explicit way to release a session in IIS from the PDA application when it is
finished making the web method call. So the example would be;

In the PDA app create a new reference to the Web Service
Call the web method
As there is no dispose obviously available in the compact framework for the
web service, contrary to a Windows application, we have tried calling a
garbage collector collect.
This does not seem to release our IIS session reference there and then. Even
doing the equivalent using a windows application, and calling a dispose on
the web reference does not clear up the session.
We need to explicitly be able to create the Web reference, call the web
method and explicitly there and then free up the IIS session by releasing
the session reference.

How can this be done? I have tried playing around with IIS settings, but not
with not much success.

If we close the PDA application then the session is immediately released.
This is the behaviour we want to programatically be able to produce!


Nov 18 '05 #8
Hi

We're waiting to get access to the system Dave, as soon as I have some
feedback I will definatley get back to you on this.

Many Thanks - OHM
Hermit Dave wrote:
Hi,

did you actually give it a try ? would like to know whether it worked
or not !!!

--

Regards,

HD
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in
message news:u6***************@TK2MSFTNGP12.phx.gbl...
Thanks - we'll try it

--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in
message news:eV**************@tk2msftngp13.phx.gbl...
sorry mode = "Off"

--

Regards,

HD
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
in your webserver's web.config... set the mode in your sessionState
to none

have a look at
http://msdn.microsoft.com/library/de...atesection.asp
for more information on <sessionState> element


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 18 '05 #9

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

Similar topics

4
by: lebo | last post by:
Hi I'm trying to understand how Python handles memory usage and dynamic object loading and unloading. Problem to solve? Build a very low memory footprint (non-GUI) Python application for...
31
by: poisondart | last post by:
Hi, I'm not sure if this is the right group to post this. If not, then I would appreciate if somebody could point me to the correct group. This is my first time releasing software to the...
12
by: frank | last post by:
Please help.....! I have built a site that works/worked absolutely fine on my test server. When I transferred it to a remote web host (the intended permanent home of the site) something very...
18
by: lylefair | last post by:
Can you post code, or a reference to a md? or ad? file on a website, where object variables are not released when they go out of scope and cause a problem, (but causing a problem is extraneous to...
2
by: Tommy Martin | last post by:
I have a strange problem. On a hosted 2003 server my session state seems to be timing out or something. At any rate the variables I set disapear. It only happens on this hosted box. It runs windows...
1
by: Chad | last post by:
On our servers we have noticed that sometimes sessions are not timing out when they should. Often session will end around the timeout specified, usually 15-20 minutes. This is not an issue with the...
9
by: Arthur Dent | last post by:
Hello all, i am at idea's end here... We have an ASP.NET 2 app, which we want to prevent from ever timing out... i have tried every thing i can think of... and have search all over, and have not...
5
by: Saroj | last post by:
Also want to know when SQL Server 2008 is releasing. Thanks, Saroj.
1
by: ramansv | last post by:
Hi am using .net page (asax) for the session timeout. In my application the session timeout is happining properly and in that am using the license to release which is releasing properly. The...
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...
0
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...
0
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,...
0
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...
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...
0
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,...
0
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...

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.