Click here to Skip to main content
11,647,810 members (69,213 online)
   

ASP.NET

 
Questionhow to set ASP.NET_sessionId cookie as HTTPOnly Pin
smehta.er12-Feb-13 6:35
membersmehta.er12-Feb-13 6:35 
AnswerRe: how to set ASP.NET_sessionId cookie as HTTPOnly Pin
Sandeep Mewara13-Feb-13 1:08
mvpSandeep Mewara13-Feb-13 1:08 
Via HTTPCookie object:
myHttpOnlyCookie.HttpOnly = true;
Read: MSDN: HttpCookie.HttpOnly Property[^]

Via Response header:
Set-Cookie: USER=123; expires=Wednesday, 09-Nov-99 23:12:40 GMT; HttpOnly
Following blog will help: http://erlend.oftedal.no/blog/?blogid=33[^]
Sandeep Mewara
Microsoft ASP.NET MVP 2012 & 2013

[My Blog]

[My Latest Post]: How to extend a WPF Textbox to Custom Picker

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150804.4 | Last Updated 3 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid