Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for cookies
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00816484
Message ID:
00816978
Views:
21
>I think I figured out how to make it work as I expected it to...
>I had the code to create the cookie and the code to read the cookie, on the same page. I now have the code that creates the cookie on page 1 and the code that reads the cookie on page 2.
You can have the code to read and write the cookie on the same page.  
Logical example:
  
  IF cookie exits on the user machine THEN
      Read the Cookie
  ELSE
      Check to see if Cookies are accepted using JavaScript Code
      IF Cookies are enabled THEN
           Write the cookie to the user machine
      END IF
  END IF
>But I still don't know why it "seemed" to work when I had both
>Cookies: Allow cookies that are stored on your computer
>and
>Cookies: Allow per-session cookies (not stored)
>set to disable....in all zones.
>
>would that still correspond to the Browser Session Cookie you mentioned?
   Were your cookie setting set to "Overide automatic cookie handling?"
>
>
>I've decided that I need to probably use JavaScript to do the test for the cookies...
>If I do would I then be able to test on just one page?
   Yes
>--------------------------------
>>:: Even tho I've disabled cookies (and this is confirmed by visiting sites that require cookies, such as UT), somehow my code is behaving as if cookies are enabled and my code writes to the cookies and retrieves data back from the cookies...however I can't find any evidence of the cookie on my workstation or server.
>>
>>You are most likely writing a Browser Session Cookie.  These cookies operate the same except for two things:  They expire when the browser is closed and they are never written to you computer, they are stored in memory.  Please provide your code where you are writing the cookie.
>>
>>
>>::Any Ideas????
>>
>>
>>
>>You can use JavaScript to check the browser to see if cookies are enabled.
>>
>>
>>HTH
>>
>>>>Wes
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform