How do you save persisted (between runs) login information in .NET (c#)?

Discussion in 'ASP .Net' started by Tom Jorgenson, Jul 17, 2003.

  1. Can anyone give me sample code for creating a persisted (between runs)
    cookie that holds the user name and password? Would appreciate it if you
    could be specific, since I've been fighting this for a day or two now and
    still can't get the cookie to persist (yes, know about the timeout period
    property - I've also checked to be sure that the machine allows cookies, and
    it does).

    Specifically need to know:

    1. what type of cookie to create (HttpCookie, Cookie, etc.),
    2. how to save it (on the Page.Request, Page.Response, etc.),
    3. where to get it on the next program run,
    4. and how to access its value(s).

    If anyone can give me an answer, I'd really appreciate it. Sample C# code
    would be ideal.

    Thank you.
    Tom Jorgenson, Jul 17, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Toby Mills
    Replies:
    0
    Views:
    1,571
    Toby Mills
    Jun 24, 2003
  2. Anthony P. Mancini
    Replies:
    8
    Views:
    414
    Victor Garcia Aprea [MVP]
    May 8, 2004
  3. VB Programmer

    Dataset not persisted on PostBack

    VB Programmer, Jun 5, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    393
    =?Utf-8?B?SmltIEhldmV5?=
    Jun 6, 2004
  4. John Dalberg
    Replies:
    2
    Views:
    581
    Steve C. Orr [MVP, MCSD]
    Jul 7, 2004
  5. ses
    Replies:
    8
    Views:
    938
    Arved Sandstrom
    Feb 25, 2011
Loading...

Share This Page