Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > how asp.net set cookies? (http level)

Reply
Thread Tools

how asp.net set cookies? (http level)

 
 
SushiSean
Guest
Posts: n/a
 
      02-21-2010
hi guys. I have question about cookies which asp.net (IIS) send to client.
For example I use this page
https://secure.rpmware.com/User/Login

The headers request and response looks like this

GET /User/Login HTTP/1.1
Host: secure.rpmware.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.17)
Gecko/2009122116 Firefox/3.0.17
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cache-Control: max-age=0

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Expires: Sun, 21 Feb 2010 12:03:33 GMT
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
Date: Sun, 21 Feb 2010 12:03:32 GMT
Content-Length: 13295

I dont see param "set-cookie" in server response and like i see it return
html page with lenth 13295. in that html code not exist any javascript for
set cookies, but if i will check cookies i will see something like

__utma=1.1047570983.1266754498.1266754498.12667544 98.1;
__utmb=1.1.10.1266754498; __utmc=1;
__utmz=1.1266754498.1.1.utmcsr=(direct)|utmccn=(di rect)|utmcmd=(none)

where it came from? how to get those values from server response?
 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      02-21-2010
Hi,

These cookies are AFAIK for Google Analytics. You should find that this page
refences an external js script that ultimately set those cookies... If you
want to set/retrieve them server side on an ASP.NET page you can use the
Cookies collection on the Request or Response object.

--
Patrice


"SushiSean" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> hi guys. I have question about cookies which asp.net (IIS) send to client.
> For example I use this page
> https://secure.rpmware.com/User/Login
>
> The headers request and response looks like this
>
> GET /User/Login HTTP/1.1
> Host: secure.rpmware.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.17)
> Gecko/2009122116 Firefox/3.0.17
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: ru,en-us;q=0.7,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Cache-Control: max-age=0
>
> HTTP/1.1 200 OK
> Cache-Control: private
> Content-Type: text/html; charset=utf-8
> Expires: Sun, 21 Feb 2010 12:03:33 GMT
> Server: Microsoft-IIS/7.0
> X-AspNetMvc-Version: 1.0
> X-AspNet-Version: 2.0.50727
> Date: Sun, 21 Feb 2010 12:03:32 GMT
> Content-Length: 13295
>
> I dont see param "set-cookie" in server response and like i see it return
> html page with lenth 13295. in that html code not exist any javascript for
> set cookies, but if i will check cookies i will see something like
>
> __utma=1.1047570983.1266754498.1266754498.12667544 98.1;
> __utmb=1.1.10.1266754498; __utmc=1;
> __utmz=1.1266754498.1.1.utmcsr=(direct)|utmccn=(di rect)|utmcmd=(none)
>
> where it came from? how to get those values from server response?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
how to create a node set of elements through C++ code while executing a style sheet and process the created node set. pvssvikas@gmail.com XML 0 01-25-2006 12:48 PM
Treeview questions - how to set set start node and how to catch click event Alan Silver ASP .Net 0 12-21-2005 10:40 AM
java.lang.Set with elements of type java.lang.Set Harald Kirsch Java 4 08-31-2004 10:40 AM
Unable to set focus to textfield in a applet if browser is set to Sun JRE 1.4 Manav Java 0 10-15-2003 03:42 PM



Advertisments