Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to secure classic ASP ASPSESSIONID cookie?

Is there a way to mark classic ASP ASPSESSIONID* cookies as secure? It appears that the ASP ISAPI handler adds that session id cookie after my page is done rendering so putting code at the end of my page to loop through the Response.Cookie collection and mark them as secure doesn't seem to touch the ASPSESSIONID* cookie. Any other way of doing this?

like image 517
slolife Avatar asked Jun 04 '09 21:06

slolife


2 Answers

The answer is no there isn't There isn't on the standard UI provided by IIS manager. However, you can enable secure cookies for the SessionID via the AspKeepSessionIDSecure Metabase value

like image 167
AnthonyWJones Avatar answered Oct 20 '22 22:10

AnthonyWJones


I run this command:

CSCRIPT C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/1/AspKeepSessionIDSecure 1

More information here: http://blogs.msdn.com/b/rahulso/archive/2007/06/19/cookies-case-study-with-ssl-and-frames-classic-asp.aspx

like image 22
Julio Garcia Avatar answered Oct 20 '22 20:10

Julio Garcia