Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to create a cookie for my desktop application. please help me or provide me any other resource , where i can learn how to create .

thanks to all
Posted
Comments
Nayan Ambaliya 28-May-14 1:07am    
If you can give us more information on what you want to use the cookie information for, it would help us give you options on how to achieve that via different methods. I think cookies are meant for websites and not for desktop applications. I hope this makes sense.
amitkumar5734 28-May-14 1:09am    
Sir , i need to store user information on that cookie . like username etc .
Nayan Ambaliya 28-May-14 1:11am    
In that case, you can create a class with properties.
When the user successfully logs in to your application, you set those properties with the user name and any other required parameters. On log out, you set it back to default values. That way you can identify whether the user is logged in or not.

Let me know if you need any help.


1 solution

 
Share this answer
 
v3
Comments
Nayan Ambaliya 28-May-14 1:12am    
Hi Murali,

I think he is talking about desktop applications and not web based applications..!!
amitkumar5734 29-May-14 1:54am    
yes right i am talking about window based application not web based .

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