Forum Moderators: open

Message Too Old, No Replies

Cookies in server headers set by host?

         

refresh1

9:41 pm on Sep 14, 2006 (gmt 0)

10+ Year Member



Hi, I've discovered my host is using a cookie in the server headers. Is this normal behaviour?

The header looks like this:
Set-Cookie: ASPSESSIONIDCACSCCDT=CDCDKLICDABFMFPNPHLIIFBE; path=/

Thanks

Easy_Coder

12:40 am on Sep 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The asp session id is set and managed by iis. It indicates that your application allows sessions.

mrMister

6:24 pm on Sep 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can disable the cookies from within your ASP script by placing this directive at the top of your script:

<@ ENABLESESSIONONSTATE = false %>

It's bad practice to leave the session state enabled if you are not making use of the session object within your scripts.

Easy_Coder

7:26 pm on Sep 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



^
that's a good point and performance tip!

refresh1

5:39 pm on Sep 16, 2006 (gmt 0)

10+ Year Member



Thanks for that, very useful.