locked
add a new cookie RRS feed

  • Question

  • Hi all,

           I need to add a new cookie that randomly changes for each login attempt. I need to generate different session id before and after the successful authentication. Also every request after the successful authentication should be associated with an extra session identifier cookie which also randomly changes and expire when user logs out from the application or closes the browser.

    Thanks

    Gaurav

    • Moved by Fred Bao Monday, August 4, 2014 5:22 AM
    Friday, August 1, 2014 4:05 AM

Answers

All replies

  • Please use the ASP.NET forums for ASP.NET related questions: http://forums.asp.net
    • Proposed as answer by Just Karl Tuesday, August 5, 2014 4:31 PM
    • Marked as answer by Just Karl Monday, September 22, 2014 9:19 PM
    Friday, August 1, 2014 6:26 AM
  • Hi Gaurav,

    You can do this using the SessionIDManager class. Check this helpful article.


    • Edited by Sam Alavi Friday, August 1, 2014 6:38 AM
    • Proposed as answer by Just Karl Tuesday, August 5, 2014 4:31 PM
    • Marked as answer by Just Karl Monday, September 22, 2014 9:19 PM
    Friday, August 1, 2014 6:36 AM
  • Sir,

    I already posted it there, but didn't get any answer since last 2 days. So I re-post it here.

    Thanks

    Friday, August 1, 2014 7:33 AM