jxharding
asked on
internet cafe program suggestions:e.g. prevent (xp) user from using internet after 15min, and how to enable it for 15min
hi , im writing a quick and dirty app for a small 2 pc internet cafe.
the idea i have is that the user pays the administrator an amount
the administrator then copies a exe i wrote to the desktop of the pc that will be used.
the client then runs the exe (which will be deleted afterwards) and then is allowed to use internet explorer for 15 minutes.
i am aware that windows explorer can also be used for this purpose.,
so should i rather let the user get logged off after his time expires? or how can i stop him from using the internet after the set time?
any other suggestions for my program? any links?
thanks!
the idea i have is that the user pays the administrator an amount
the administrator then copies a exe i wrote to the desktop of the pc that will be used.
the client then runs the exe (which will be deleted afterwards) and then is allowed to use internet explorer for 15 minutes.
i am aware that windows explorer can also be used for this purpose.,
so should i rather let the user get logged off after his time expires? or how can i stop him from using the internet after the set time?
any other suggestions for my program? any links?
thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi armoghan
i did write a timer in vb that counts down and i plan to implement the disconnection procedures to it.
that codeproject link looks very good, im going to try it out now.
it seems that logging off the user is the best way to go?
i did write a timer in vb that counts down and i plan to implement the disconnection procedures to it.
that codeproject link looks very good, im going to try it out now.
it seems that logging off the user is the best way to go?
yes log off will serve the purpose from preventing the user to continue using internet
ASKER
hi armoghan, the link shuts down the pc.
do u perhaps have any tips regarding logging off?
thanks!
do u perhaps have any tips regarding logging off?
thanks!
In the same article see the Case 4. It logs off
case 4:
Org.Mentalis.Utilities.Win dowsContro ller.
ExitWindows(RestartOptions .LogOff, false);
case 4:
Org.Mentalis.Utilities.Win
ExitWindows(RestartOptions
http://www.csharphelp.com/archives/archive90.html