Click here to Skip to main content
15,890,355 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am developing a web application and I wants to use web service for implementing A cross-platform feature.How many functions we can use in web service? Can we define
run-time control and view-state property ?
Plz.... Explain : I am quit confuse with these.





thanx..
Posted

No place is secure for storing passwords! Passwords are normally not stored anywhere; authentication does not need it. (Encrypted password data or password hash can be stored safely.) I would also not classify cookies to "security stuff" (maybe the opposite).

However, yes, a Web Service can be used to provide security services; it all depends on the whole security strategy.

The "difference between {0} and {1}" is incorrect question. Let's say, the "difference" function is not defined in general case. What are your questions about each of Web Application and Web site?

—SA
 
Share this answer
 
v2
Comments
[no name] 14-Jun-11 4:06am    
thanx.. Actually it was for web application.
Sergey Alexandrovich Kryukov 14-Jun-11 16:36pm    
Nothing changes, my answer is still valid.
--SA
Hi,
although there is no maximum defined anywhere you should keep the number no more than 15-20, as it is strange to have a big number of methods within the same contract. Try to keep the architecture as scalable as you can (a big number of methods will very likely confuse the consumer of these items).
Relating to the ViewState - as far as I know you cannot use it within the Web-Service, but why not using the Cache for the exactly same purpose:
HttpRuntime.Cache.Insert(key, value, null, System.Web.Caching.Cache.NoAbsoluteExpiration, System.Web.Caching.Cache.NoSlidingExpiration, System.Web.Caching.CacheItemPriority.NotRemovable, null);

You can further analyze the Cache here[^].

"Is Web Service is secure for storing password" - yes it is secure as far as you implement well defined security mechanisms (Web calls via HTTPS is a must in this case). It really depends upon the required architecture what kind of security mechanism needs to be implemented.
"What is the main difference between Web Application and Website" - read this post[^]
Regards
 
Share this answer
 
Comments
[no name] 14-Jun-11 4:07am    
thanx.. Really helpful.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900