Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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



    >-----Original Message-----
    > when we use login page in every asp.net web
    application,
    >we will be told by books or articles, saying that after
    we
    >login in using the login page, the username and password
    >will be stored as cookie if we use RedirectFromLoginPage
    >method, and after we sign out, the cookie will be
    deleted,
    >or we can set the timeout for the period of storing the
    >cookie. what does it actually mean? let say i login in
    to
    >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
    knows
    >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,
    thanks
    >.
    >
    venkat Guest

  2. Similar Questions and Discussions

    1. HTTP::Cookie won't store sent cookie
      Hi all, My script requests http://foo.bar.com/ with code that looks a little like this: my $ua = LWP::UserAgent->new; my $cookie_jar =...
    2. get cookie through img src
      I can't get cookie information from domainx.com in this setup. The visitor follows this clickpath: domainx.com (SETcookie.php) -> domainy.com...
    3. Why my cookie die ??:(
      Hi I have another problem, this time my cookie die, dont know why :(. In my code on first page I set cookie something like this <?php...
    4. Cookies set one time, I delete cookie, cookie is never set again!
      I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes,...
    5. authentication cookie vs session cookie
      Hi, What are the differences between authentication and session cookies? In my web.config file, I set the cookieless attribute for the...
  3. #2

    Default 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.
    >-----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
    >
    >
    >
    >
    >>-----Original Message-----
    >> when we use login page in every asp.net web
    >application,
    >>we will be told by books or articles, saying that after
    >we
    >>login in using the login page, the username and password
    >>will be stored as cookie if we use RedirectFromLoginPage
    >>method, and after we sign out, the cookie will be
    >deleted,
    >>or we can set the timeout for the period of storing the
    >>cookie. what does it actually mean? let say i login in
    >to
    >>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
    >knows
    >>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,
    >thanks
    >>.
    >>
    >.
    >
    Machi Guest

  4. #3

    Default Re: Cookie

    Are you using RedirectfromLogin("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.com> wrote in message
    news:076501c33c81$d69da810$a601280a@phx.gbl...
    > 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.
    >
    > >-----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
    > >
    > >
    > >
    > >
    > >>-----Original Message-----
    > >> when we use login page in every asp.net web
    > >application,
    > >>we will be told by books or articles, saying that after
    > >we
    > >>login in using the login page, the username and password
    > >>will be stored as cookie if we use RedirectFromLoginPage
    > >>method, and after we sign out, the cookie will be
    > >deleted,
    > >>or we can set the timeout for the period of storing the
    > >>cookie. what does it actually mean? let say i login in
    > >to
    > >>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
    > >knows
    > >>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,
    > >thanks
    > >>.
    > >>
    > >.
    > >

    Nikunj Patel Guest

  5. #4

    Default cookie

    Hello

    when executing this

    $sValidate=md5(rand(0,99999));
    setcookie('validate',$sValidate,time()+60*60*24*7, '/','www.test.nl');

    there should be a cookie file on my pc. But there is none. Can anybode help
    me.

    thanks Frank


    Frank Beerens Guest

  6. #5

    Default Re: cookie

    On Fri, 5 Mar 2004 22:11:52 +0100, "Frank Beerens"
    <FrankEnSonja2@zonnet.nl> wrote:
    >Hello
    >
    >when executing this
    >
    > $sValidate=md5(rand(0,99999));
    > setcookie('validate',$sValidate,time()+60*60*24*7, '/','www.test.nl');
    >
    >there should be a cookie file on my pc. But there is none. Can anybode help
    >me.
    >
    >thanks Frank
    >
    Is the servertime accurate? I recently had a problem where a tech
    screwed up the time on the server (by 8 years!) and cookies stopped
    working.
    Tyrone Slothrop Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139