473,388 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

how to use cookie in winform

I want to use a "winform log-in" to replace of "webform log-in". I think I should use cookie, however, how to use cookie in winfrom?
Mar 22 '07 #1
8 2527
channaJ
67
I want to use a "winform log-in" to replace of "webform log-in". I think I should use cookie, however, how to use cookie in winfrom?

No buddy...you cannot use cookies in a winform. You use cookies only in web apps to store small amounts of data in the clients who access them.
Mar 22 '07 #2
if I do not use cookie, what methdo should I use?
Mar 22 '07 #3
channaJ
67
if I do not use cookie, what methdo should I use?

It depends on the scenario. You can use a database table or XML file to maintain your user info. If you be more specific, I might be able to give some help.
Mar 22 '07 #4
I do not understand what you exactly mean.
Mar 22 '07 #5
What do you want to store in the "cookie"? Session state similar to a cookie in ASP.NET? What do you plan to authenticate the user back against? I have an application that loads to a MDI container with my login form there. Until the login is successful, you have no rights in the application. Is that what you are after? I use Active Directory for authentication, but you could easily use a SQL database or XML doc.

Jon
Mar 23 '07 #6
channaJ
67
I do not understand what you exactly mean.
OK..then give details of what you are trying to do.
Mar 23 '07 #7
what i want is quite simple, it just needs using a winform login programe to instead of a webform login page. when i open the winform programe and type my uid and pwd, then i can go visit a website without re-login in the webform.
Mar 23 '07 #8
channaJ
67
what i want is quite simple, it just needs using a winform login programe to instead of a webform login page. when i open the winform programe and type my uid and pwd, then i can go visit a website without re-login in the webform.
Im still confused. Why do you want to log in to a web app using a windows form? I think you have a design problem here. Why don't you just use a login page in your web app?
Mar 26 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: brettr | last post by:
When I reference document.cookie, there is a long string of key=value; pairs listed. I may have 100 hundred cookies on my hard drive. However, most only have one key=value pair. Does the...
4
by: socialism001 | last post by:
I'm trying to store a value in a cookie but its not working. Can anyone see what I might be doing wrong. Thanks, Chris ~~~~~~~~~~~~~~~~~~ <script language="javascript">...
9
by: Marco Krechting | last post by:
Hi All, I have a page with a list of hyperlinks. I want to save information in a cookie about the fact that I entered an hyperlink or not. When I click one of the hyperlinks I want this stored...
8
by: Sunil Menon | last post by:
Dear All, We are developing applications in ASP.Net...in one of our applications we would like to use a GridControl...we have tried to use a Server-Side Grid control but found the speed to be an...
3
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code...
6
by: IntraRELY | last post by:
I have an WinForm (VB.NET) that is launched from an ASP.NET page that uses Form Authentication. After the WinForm is lauched it calls a web service. I want to use the credentials stored in the...
0
by: Ayaz | last post by:
Hi All, I need to check the browser (IE) cookie permission, i.e. whether it is possible to create and read a cookie. I need to do that from a VB.NET winform application. For that, I have to...
0
by: banmuhuangci | last post by:
i want get client cookie in winform before any remote request. if client have the right cookie infomation ,winform application request the right remote server. how can i do it?
1
by: foolsbar | last post by:
Hi there, Is it possible to read a cookie's domain from the actual .txt file? I want to be able to iterate through all of the cookie files on the local file system, and find out which domain the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.