Click here to Skip to main content
15,903,012 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Winamp - howto Pin
spaceus19-Sep-04 12:18
spaceus19-Sep-04 12:18 
GeneralSome Problem regading "TREE CONTROL" in VB.NET Pin
eshban28418-Sep-04 9:32
eshban28418-Sep-04 9:32 
GeneralRe: Some Problem regading "TREE CONTROL" in VB.NET Pin
Anonymous18-Sep-04 10:06
Anonymous18-Sep-04 10:06 
GeneralProblem building a Setup Pin
Rylogy18-Sep-04 6:43
Rylogy18-Sep-04 6:43 
GeneralRe: Problem building a Setup Pin
Anonymous18-Sep-04 8:56
Anonymous18-Sep-04 8:56 
GeneralRe: Problem building a Setup Pin
Rylogy18-Sep-04 13:36
Rylogy18-Sep-04 13:36 
Generalweb service/vb.net Pin
jesselongoria18-Sep-04 5:42
jesselongoria18-Sep-04 5:42 
GeneralRe: web service/vb.net Pin
Dave Kreskowiak20-Sep-04 5:03
mveDave Kreskowiak20-Sep-04 5:03 
It could, but it is NOT Web Service friendly. Your Web Service should be self contained and use NO user interface what-so-ever. This would allow your service to be used by either a Web Application OR a Windows Forms app without any changes to the service or regard to the type of application calling it.

Since a Web Service is usually stateless, using a User Name and Password is not really a good idea, but it is possible.

Your application would have to supply a user interface that gathers the username and password. The Web Service would expose a method that authenticates that information against a credentials database and establishes a session tracking record in a second database. This session tracker would generate a token, possibly a GUID, and return that token to the client. For each and every subsequent call to the Web Service, each method would take that token as an argument and see if it exists in the session database. If not or if the session expired, the call would be denied and return some kind of custom authentication exception that the application would have to deal with. If so, the call would be processed as normal, then the session database record updated with a new data/time value that would keep the session record alive. The session database would scan the session records, say every minute, and timeout (kill off) the records that have expired in, say, the last 20 minutes.

Every method call you write in your service would have to update the record of the session token it gets! This way, someone can't login to your service and just sit there all day, not doing anything with it.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: web service/vb.net Pin
jesselongoria20-Sep-04 6:54
jesselongoria20-Sep-04 6:54 
QuestionOverride problems !?!? Pin
BoxenBiene18-Sep-04 3:26
BoxenBiene18-Sep-04 3:26 
AnswerRe: Override problems !?!? Pin
Colin Angus Mackay18-Sep-04 7:39
Colin Angus Mackay18-Sep-04 7:39 
GeneralRe: Override problems !?!? Pin
BoxenBiene18-Sep-04 21:45
BoxenBiene18-Sep-04 21:45 
GeneralRe: Override problems !?!? Pin
Colin Angus Mackay19-Sep-04 1:46
Colin Angus Mackay19-Sep-04 1:46 
Generaloledbconnection array Pin
Raja Venkatesh18-Sep-04 3:15
Raja Venkatesh18-Sep-04 3:15 
GeneralRe: oledbconnection array Pin
Dave Kreskowiak20-Sep-04 4:50
mveDave Kreskowiak20-Sep-04 4:50 
GeneralRe: oledbconnection array Pin
Raja Venkatesh7-Oct-05 6:39
Raja Venkatesh7-Oct-05 6:39 
GeneralRe: oledbconnection array Pin
Dave Kreskowiak7-Oct-05 16:54
mveDave Kreskowiak7-Oct-05 16:54 
GeneralForm returning value Pin
JensB18-Sep-04 0:03
JensB18-Sep-04 0:03 
GeneralRe: Form returning value Pin
maciekj18-Sep-04 6:36
maciekj18-Sep-04 6:36 
QuestionSmart device application - How to give the path? Pin
Member 76608417-Sep-04 21:57
Member 76608417-Sep-04 21:57 
AnswerRe: Smart device application - How to give the path? Pin
Dave Kreskowiak20-Sep-04 3:07
mveDave Kreskowiak20-Sep-04 3:07 
GeneralHelp with Forms Pin
Mega117-Sep-04 15:27
Mega117-Sep-04 15:27 
GeneralRe: Help with Forms Pin
Steven J Mitchell17-Sep-04 19:46
Steven J Mitchell17-Sep-04 19:46 
GeneralRe: Help with Forms Pin
Dave Kreskowiak20-Sep-04 3:02
mveDave Kreskowiak20-Sep-04 3:02 
Generalstored procedures Pin
AnnSol17-Sep-04 13:54
AnnSol17-Sep-04 13:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.