Click here to Skip to main content
15,914,500 members
Home / Discussions / C#
   

C#

 
GeneralRe: Application.Run()??? Pin
PIEBALDconsult15-Nov-09 15:24
mvePIEBALDconsult15-Nov-09 15:24 
GeneralRe: Application.Run()??? Pin
binhvtt15-Nov-09 16:50
binhvtt15-Nov-09 16:50 
GeneralRe: Application.Run()??? Pin
PIEBALDconsult15-Nov-09 17:02
mvePIEBALDconsult15-Nov-09 17:02 
AnswerRe: Application.Run()??? Pin
dojohansen15-Nov-09 23:06
dojohansen15-Nov-09 23:06 
QuestionGet/use data in a c# program? Pin
ahlm15-Nov-09 9:44
ahlm15-Nov-09 9:44 
AnswerRe: Get/use data in a c# program? Pin
Abhishek Sur15-Nov-09 10:55
professionalAbhishek Sur15-Nov-09 10:55 
GeneralRe: Get/use data in a c# program? Pin
ahlm15-Nov-09 18:54
ahlm15-Nov-09 18:54 
GeneralRe: Get/use data in a c# program? Pin
Abhishek Sur15-Nov-09 21:02
professionalAbhishek Sur15-Nov-09 21:02 
Hey,

I think CodeProject puts an authentication cookie in the browser, so that whenever the user comes back to the site, it checks if auth cookie is there in the browser and tries to authenticate with it.

so in your case, I think you need to do something like this.

Use
Response.Cookies["uid"].Value = userid;
Response.Cookies["pwd"].Value = passkey;


And whenever the login page is requested, first check
Request.Cookies["uid"].Value
Request.Cookies["pwd"].Value


and try to authenticate with them. If not successful show the login screen, otherwise show the home screen for that user.

Note :
It is always better to have this optional, as you might have a checkbox for Remember Me, to put the cookie in the browser.

Rose | [Rose]

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

GeneralRe: Get/use data in a c# program? Pin
Shameel16-Nov-09 3:04
professionalShameel16-Nov-09 3:04 
GeneralRe: Get/use data in a c# program? Pin
Abhishek Sur16-Nov-09 3:35
professionalAbhishek Sur16-Nov-09 3:35 
GeneralRe: Get/use data in a c# program? Pin
dojohansen15-Nov-09 23:16
dojohansen15-Nov-09 23:16 
GeneralRe: Get/use data in a c# program? Pin
ahlm16-Nov-09 6:25
ahlm16-Nov-09 6:25 
QuestionForm's height being cut off Pin
gdub15-Nov-09 9:17
gdub15-Nov-09 9:17 
AnswerRe: Form's height being cut off Pin
Luc Pattyn15-Nov-09 10:09
sitebuilderLuc Pattyn15-Nov-09 10:09 
GeneralRe: Form's height being cut off Pin
dojohansen15-Nov-09 23:20
dojohansen15-Nov-09 23:20 
Questionproblem in reading of connection string inside app.config by application Pin
Mohamed El-Wehishy15-Nov-09 8:58
Mohamed El-Wehishy15-Nov-09 8:58 
AnswerRe: problem in reading of connection string inside app.config by application Pin
PIEBALDconsult15-Nov-09 13:45
mvePIEBALDconsult15-Nov-09 13:45 
AnswerRe: problem in reading of connection string inside app.config by application Pin
Shameel16-Nov-09 3:08
professionalShameel16-Nov-09 3:08 
Questionsome Windows 7 and C# question Pin
E_Gold15-Nov-09 7:49
E_Gold15-Nov-09 7:49 
AnswerRe: some Windows 7 and C# question Pin
Christian Graus15-Nov-09 8:56
protectorChristian Graus15-Nov-09 8:56 
GeneralRe: some Windows 7 and C# question Pin
Adam Maras15-Nov-09 14:19
Adam Maras15-Nov-09 14:19 
GeneralRe: some Windows 7 and C# question Pin
Super Lloyd15-Nov-09 15:18
Super Lloyd15-Nov-09 15:18 
GeneralRe: some Windows 7 and C# question Pin
dojohansen15-Nov-09 23:27
dojohansen15-Nov-09 23:27 
GeneralRe: some Windows 7 and C# question Pin
Super Lloyd16-Nov-09 2:27
Super Lloyd16-Nov-09 2:27 
GeneralRe: some Windows 7 and C# question Pin
Shameel16-Nov-09 3:12
professionalShameel16-Nov-09 3:12 

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.