locked
more info in seauthcookie RRS feed

  • Question

  • User1256512446 posted

    Hi all:

    I use form authentication.

    I want to put the client ID in setauthcookie. Can I do it? How?

    Another question is the duration of the cookie. I saw the rememberset. MSDN tells that setting it to true it last 50 years. And to false? 20 minutes?

    Thanks in advanced

    Thursday, February 5, 2015 7:57 AM

Answers

  • User2008642861 posted

    Hi volar5,

    Thank you for your post. From your post, I suppose that you may want to know how to use cookies. Here is a tutorial for you to refer.

    https://msdn.microsoft.com/en-us/library/ms178194(v=vs.100).aspx

    It has shown you how to use the cookies with an application.

    By the way, as I know, if we don't set the time at web.config, Cookies would disabled after 20 minutes.

    Hope this could be helpful to you.

    Best regards,

    Archer

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 17, 2015 2:39 AM