Cookie

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • venkat

    Cookie

    hi

    If you close the browser directly then the cookie won't
    get deleted. When ever you log off only it will get
    deleted. If you close the browser directly and again the
    open the browser for the same URL directly it will
    display as logged in page.

    regards

    G.Venkat



    [color=blue]
    >-----Original Message-----
    > when we use login page in every asp.net web[/color]
    application,[color=blue]
    >we will be told by books or articles, saying that after[/color]
    we[color=blue]
    >login in using the login page, the username and password
    >will be stored as cookie if we use RedirectFromLog inPage
    >method, and after we sign out, the cookie will be[/color]
    deleted,[color=blue]
    >or we can set the timeout for the period of storing the
    >cookie. what does it actually mean? let say i login in[/color]
    to[color=blue]
    >one web application, after that, i close my browser, the
    >cookie should be deleted from the user's pc ?? if yes,
    >then what actually trigger the user's PC so that it[/color]
    knows[color=blue]
    >when to delete the cookie from the user's pc ?? if we
    >close the browser, how can the IIS Server (where ASP.nET
    >web application hosts) will know how to trigger the
    >elimination of cookie in user's pc ??? please help,[/color]
    thanks[color=blue]
    >.
    >[/color]
  • Machi

    #2
    Cookie

    Sorry for any confusion which i have made. But what i have
    tested is that, i need to login again everytime i close
    the browser directly.
    [color=blue]
    >-----Original Message-----
    >hi
    >
    >If you close the browser directly then the cookie won't
    >get deleted. When ever you log off only it will get
    >deleted. If you close the browser directly and again the
    >open the browser for the same URL directly it will
    >display as logged in page.
    >
    >regards
    >
    >G.Venkat
    >
    >
    >
    >[color=green]
    >>-----Original Message-----
    >> when we use login page in every asp.net web[/color]
    >application,[color=green]
    >>we will be told by books or articles, saying that after[/color]
    >we[color=green]
    >>login in using the login page, the username and password
    >>will be stored as cookie if we use RedirectFromLog inPage
    >>method, and after we sign out, the cookie will be[/color]
    >deleted,[color=green]
    >>or we can set the timeout for the period of storing the
    >>cookie. what does it actually mean? let say i login in[/color]
    >to[color=green]
    >>one web application, after that, i close my browser, the
    >>cookie should be deleted from the user's pc ?? if yes,
    >>then what actually trigger the user's PC so that it[/color]
    >knows[color=green]
    >>when to delete the cookie from the user's pc ?? if we
    >>close the browser, how can the IIS Server (where ASP.nET
    >>web application hosts) will know how to trigger the
    >>elimination of cookie in user's pc ??? please help,[/color]
    >thanks[color=green]
    >>.
    >>[/color]
    >.
    >[/color]

    Comment

    • Nikunj Patel

      #3
      Re: Cookie

      Are you using RedirectfromLog in("username", boolean) ??
      What is the value of the boolean ??? If it is true then it will store a
      cookie else it just makes a temporary session and not make a permanent
      cookie.

      If you want the login to be valid even after the user closes his browser
      then set the boolean value to true, else set it to false. The credentials
      will be destroyed once the browser is closed or when you call the signout
      function.

      HTH,
      NP

      "Machi" <pangts@yahoo.c om> wrote in message
      news:076501c33c 81$d69da810$a60 1280a@phx.gbl.. .[color=blue]
      > Sorry for any confusion which i have made. But what i have
      > tested is that, i need to login again everytime i close
      > the browser directly.
      >[color=green]
      > >-----Original Message-----
      > >hi
      > >
      > >If you close the browser directly then the cookie won't
      > >get deleted. When ever you log off only it will get
      > >deleted. If you close the browser directly and again the
      > >open the browser for the same URL directly it will
      > >display as logged in page.
      > >
      > >regards
      > >
      > >G.Venkat
      > >
      > >
      > >
      > >[color=darkred]
      > >>-----Original Message-----
      > >> when we use login page in every asp.net web[/color]
      > >application,[color=darkred]
      > >>we will be told by books or articles, saying that after[/color]
      > >we[color=darkred]
      > >>login in using the login page, the username and password
      > >>will be stored as cookie if we use RedirectFromLog inPage
      > >>method, and after we sign out, the cookie will be[/color]
      > >deleted,[color=darkred]
      > >>or we can set the timeout for the period of storing the
      > >>cookie. what does it actually mean? let say i login in[/color]
      > >to[color=darkred]
      > >>one web application, after that, i close my browser, the
      > >>cookie should be deleted from the user's pc ?? if yes,
      > >>then what actually trigger the user's PC so that it[/color]
      > >knows[color=darkred]
      > >>when to delete the cookie from the user's pc ?? if we
      > >>close the browser, how can the IIS Server (where ASP.nET
      > >>web application hosts) will know how to trigger the
      > >>elimination of cookie in user's pc ??? please help,[/color]
      > >thanks[color=darkred]
      > >>.
      > >>[/color]
      > >.
      > >[/color][/color]


      Comment

      Working...