<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6932797</id><updated>2011-04-21T13:41:03.606-07:00</updated><title type='text'>Rasik Jain</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rasikjain.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6932797/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rasikjain.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rasik Jain</name><uri>http://www.blogger.com/profile/15989552511390233915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6932797.post-116545166132319793</id><published>2006-12-06T16:32:00.000-08:00</published><updated>2006-12-06T16:36:56.363-08:00</updated><title type='text'>Setting Secure Flag for Session Cookie in ASP.NET</title><content type='html'>A cookie can be set with the Secure flag, which makes it to be sent only over a secure channel, such as an SSL connections. This Secure flag will ensure that session cookies are sent only over secure channels to prevent them from being captured in transit.&lt;br /&gt;&lt;br /&gt;If an application is using the default ASP.Net session ID (e.g. ASP.NET_SessionID) as the session token, the secure flag can be set using the following code.&lt;br /&gt;&lt;br /&gt;Include the following statement in the Session_Start of the global.asax file:&lt;br /&gt;&lt;br /&gt;protected void Session_Start(Object sender, EventArgs e)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;// secure the ASP.NET Session ID only if using SSL&lt;br /&gt;&lt;br /&gt;// if you don't check for the issecureconnection, it will not work.&lt;br /&gt;&lt;br /&gt;if (Request.IsSecureConnection == true)&lt;br /&gt;&lt;br /&gt;Response.Cookies ["ASP.NET_SessionID"].Secure = true;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If the .NET application is using a Forms Auth Cookie (e.g ASPXAUTH), then usually the secure flag is enabled through the web.config file within the &lt;forms&gt; tag using the requireSSL="true" property.&lt;br /&gt;&lt;br /&gt;More Information Security Items at &lt;a href="http://www.webinfosec.com/blog-entry/setting-secure-flag-for-session-cookie-in-asp-net"&gt;WebInfoSec Website&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6932797-116545166132319793?l=rasikjain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.webinfosec.com/blog-entry/setting-secure-flag-for-session-cookie-in-asp-net' title='Setting Secure Flag for Session Cookie in ASP.NET'/><link rel='replies' type='application/atom+xml' href='http://rasikjain.blogspot.com/feeds/116545166132319793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6932797&amp;postID=116545166132319793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6932797/posts/default/116545166132319793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6932797/posts/default/116545166132319793'/><link rel='alternate' type='text/html' href='http://rasikjain.blogspot.com/2006/12/setting-secure-flag-for-session-cookie.html' title='Setting Secure Flag for Session Cookie in ASP.NET'/><author><name>Rasik Jain</name><uri>http://www.blogger.com/profile/15989552511390233915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6932797.post-111003871577682571</id><published>2005-03-05T08:04:00.000-08:00</published><updated>2005-03-05T08:05:15.776-08:00</updated><title type='text'>My First Blog</title><content type='html'>Hi !!!&lt;br /&gt;             Creating my first blog listing @03/05&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6932797-111003871577682571?l=rasikjain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rasikjain.blogspot.com/feeds/111003871577682571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6932797&amp;postID=111003871577682571' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6932797/posts/default/111003871577682571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6932797/posts/default/111003871577682571'/><link rel='alternate' type='text/html' href='http://rasikjain.blogspot.com/2005/03/my-first-blog.html' title='My First Blog'/><author><name>Rasik Jain</name><uri>http://www.blogger.com/profile/15989552511390233915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
