469,924 Members | 1,419 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,924 developers. It's quick & easy.

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 1018
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by lebo | last post: by
18 posts views Thread by lylefair | last post: by
2 posts views Thread by Tommy Martin | last post: by
1 post views Thread by Chad | last post: by
9 posts views Thread by Arthur Dent | last post: by
1 post views Thread by ramansv | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.