<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>J2ee learner's blog</title>
	<atom:link href="http://myj2ee.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://myj2ee.wordpress.com</link>
	<description>J2ee learning blog</description>
	<lastBuildDate>Tue, 31 Jul 2007 18:42:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='myj2ee.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>J2ee learner's blog</title>
		<link>http://myj2ee.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://myj2ee.wordpress.com/osd.xml" title="J2ee learner&#039;s blog" />
	<atom:link rel='hub' href='http://myj2ee.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Look at cookies</title>
		<link>http://myj2ee.wordpress.com/2007/07/29/look-at-cookies/</link>
		<comments>http://myj2ee.wordpress.com/2007/07/29/look-at-cookies/#comments</comments>
		<pubDate>Sun, 29 Jul 2007 21:24:27 +0000</pubDate>
		<dc:creator>j2eeblog</dc:creator>
				<category><![CDATA[Session]]></category>

		<guid isPermaLink="false">http://myj2ee.wordpress.com/2007/07/29/look-at-cookies/</guid>
		<description><![CDATA[Cookies are mainly used for session tracking. Which are done automatically for you when you create a new session: HttpSession session = request.getSession();   //it&#8217;s also same syntax to get existing session set cookie: Cookie c = new Cookie(name, value); response.addCookie(c); Seems like you can get cookie from  Cookie[] cookies = request.getCookies(); for (int i = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=myj2ee.wordpress.com&amp;blog=1431542&amp;post=3&amp;subd=myj2ee&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Cookies are mainly used for session tracking. Which are done automatically for you when you create a new session:</p>
<p>HttpSession session = request.getSession();   //it&#8217;s also same syntax to get existing session</p>
<p>set cookie:</p>
<p>Cookie c = new Cookie(name, value);<br />
response.addCookie(c);</p>
<p>Seems like you can get cookie from </p>
<p>Cookie[] cookies = request.getCookies();<br />
for (int i = 0; i &lt; cookies.length; i++) {<br />
            Cookie c = cookies[i];<br />
            String name = c.getName();<br />
            String value = c.getValue();<br />
            out.println(name + &#8220;<font color="#009900"> = </font>&#8221; + value);<br />
        }</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/myj2ee.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/myj2ee.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/myj2ee.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/myj2ee.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/myj2ee.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/myj2ee.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/myj2ee.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/myj2ee.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/myj2ee.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/myj2ee.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/myj2ee.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/myj2ee.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/myj2ee.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/myj2ee.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/myj2ee.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/myj2ee.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=myj2ee.wordpress.com&amp;blog=1431542&amp;post=3&amp;subd=myj2ee&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://myj2ee.wordpress.com/2007/07/29/look-at-cookies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/93acd4706a3332bdc3acfb614ff0f4f9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">j2eeblog</media:title>
		</media:content>
	</item>
	</channel>
</rss>
