locked
How to expire Cookie RRS feed

  • Question

  • Hi Friends,


    My requirement is that while accessing site whnever  user close the browser window the cookie gets expire.
    • Edited by Sonu888 Thursday, January 15, 2009 9:46 AM
    Friday, August 8, 2008 8:11 AM

Answers

  • Hello arun,

    You can make a session cookie and it will expire as soon as browser is closed.

    To make a session cookie you should make a cookie without expiration date.

    Regards,
    Sasa
    www.vegaitsourcing.rs
    http://www.codeplex.com/aspnetlibrary
    • Proposed as answer by Amit V Friday, August 8, 2008 3:33 PM
    • Marked as answer by Sonu888 Wednesday, August 13, 2008 5:54 AM
    • Marked as answer by Sonu888 Wednesday, August 13, 2008 5:54 AM
    • Marked as answer by Sonu888 Wednesday, August 13, 2008 5:55 AM
    • Marked as answer by Sonu888 Wednesday, August 13, 2008 5:55 AM
    • Marked as answer by Sonu888 Wednesday, August 13, 2008 5:55 AM
    Friday, August 8, 2008 12:26 PM