Iam using wm5 pocketpc.I want to create timeout session in my pocketpc application which is in vb.net.The application is webservice based.So that i want to create timeout session in my client device application.Is it possible Is there any code snippet for this Please help me
Thanx in advance

timeoutsession in pocketpc application
Alexei Pavlov aka BlackTiger
how about some pseduocode assuming you're talking about creating a session within the app itself:
on app start:
DateTime sessionExpires = DateTime.Now.Add(length of session)
on any activity:
if sessionExpires > DateTime.Now
renew session (sessionExpires = DateTime.Now.Add(length of session))
do activity
else
terminate app
Aazad
As I already stated, it sounds like the kind of session you're talking about is a web/http session, which only exists in the context of a web application. for a compact framework forms application, there is no session object available to you. Beyond this, I'm going to stop replying, you obviously need to do some of your own research, I'm not going to write your program for you.
mike_b_a
its not working.Is it possible to use session() class in device application.Error occured for declaration of session().What can i do Please help me
Iam using wm5 pocketpc.
tamasu
if you're looking to terminate a session based on a timeout, you need to do so at the source of the session. You said you're using a web service Any session handling would be server side.
If you're looking to create a session-like construct within the context of the pocketpc -- i.e., you want to log someone out of the app in question after a certain period of time, simply create a globally-accessible "time to live" variable (now + session length) on app start, and refresh it upon any activity, checking first to see if current time > timeout time.
Yulia
hi
As iam newbie to this application,i do not understand what u r saying.Will u please explain me clearly or send me the code format for this
thanks