Session control with Forms authentication and cookie expire time?

Discussion in 'ASP .Net' started by =?Utf-8?B?SXZheWxvIEd1YmVyb3Y=?=, Sep 5, 2004.

  1. Hi

    Can anyone give me advise about following topics:

    1. I want to trace user log in and log out time in my asp.net web
    application? I can easely handle moment of log in and to store in anywhere
    (for example in database) but how can i handle the moment of log out if user
    doesn't use log out feature of my web application but juse close the web
    browser? Is there any event which is raised then?
    2.How can I create cookie with no expiration time for Forms
    Authentication?i.e. i want my cookies to live as long as the web browser is
    open?

    Thanks in advance
     
    =?Utf-8?B?SXZheWxvIEd1YmVyb3Y=?=, Sep 5, 2004
    #1
    1. Advertising

  2. =?Utf-8?B?SXZheWxvIEd1YmVyb3Y=?=

    chanmmn Guest

    You got to use session time out. You don't really need the cookie that is
    not expire. By right cookie is meant to be expired.

    chanmm

    "Ivaylo Guberov" <Ivaylo > wrote in message
    news:...
    > Hi
    >
    > Can anyone give me advise about following topics:
    >
    > 1. I want to trace user log in and log out time in my asp.net web
    > application? I can easely handle moment of log in and to store in anywhere
    > (for example in database) but how can i handle the moment of log out if
    > user
    > doesn't use log out feature of my web application but juse close the web
    > browser? Is there any event which is raised then?
    > 2.How can I create cookie with no expiration time for Forms
    > Authentication?i.e. i want my cookies to live as long as the web browser
    > is
    > open?
    >
    > Thanks in advance
     
    chanmmn, Sep 5, 2004
    #2
    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. Joey Powell

    Forms Authentication Cookie Does Not Expire

    Joey Powell, Dec 2, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    500
  2. Asim Qazi

    Session Expire and Forms Authentication

    Asim Qazi, May 29, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    3,330
    Spam Catcher
    May 29, 2006
  3. Joey Powell

    Forms Authentication Cookie Does Not Expire

    Joey Powell, Nov 30, 2003, in forum: ASP .Net Security
    Replies:
    4
    Views:
    192
  4. Eric
    Replies:
    2
    Views:
    553
  5. David Graham

    cookie expire time and time zones

    David Graham, Nov 20, 2003, in forum: Javascript
    Replies:
    6
    Views:
    271
    Dr John Stockton
    Nov 22, 2003
Loading...

Share This Page