Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Cookie not expiring... |
|---|---|
| Date: | Wed, 17 Aug 2005 10:00:23 +0200 |
.NET Framework Supported in: 2.0, 1.1, 1.0
try that?
I'm testing an application and after clicking on the logout button the session management cookie does not expire. More specifically, the application is using the FormsAuthentication class signout method to "logout" an authenticated user.
Private Sub cmdSignOut_ServerClick(ByVal sender As System.Object,
ByVal e As System.EventArgs) _
Handles cmdSignOut.ServerClick
FormsAuthentication.SignOut()
Session.Abandon()
Response.Redirect("login.aspx", True)
End SubAccording to Microsoft documentation, this FormsAuthentication.SignOut method works by returning a Set-Cookie header to the browser that sets the cookie's value to a null string and sets the cookie's expiration date to a date in the past. This is only expiring the cookie on the client/browser side. Which will allow a "malicious" user, who had access to the cookie, to reuse it after user logs out.
Does anyone know how to force the cookie to expire on the server side ?
Thanks.
-- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15-Aug-05
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re[2]: MD5 Password encoding (was: Defeating Citi-Bank Virtual Keyboard Protection), Oleg Topchiy |
|---|---|
| Next by Date: | Re: MD5 Password encoding (was: Defeating Citi-Bank Virtual Keyboard Protection), Thomas Chiverton |
| Previous by Thread: | Cookie not expiring..., spawn security |
| Next by Thread: | RE: Cookie not expiring..., Dan Simon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |