Can I delete asp.net cookies in an iframe with php?

17 points

I am able to log into the asp.net iframe, but when I log out I get an asp.net error logging back in until I delete all session cookies in the browser (Firefox) - then, I get redirected to the login screen the first attempt but on the 2nd attempt I can log in.

Is there a way to emulate the Firefox "delete all session cookies" with PHP? I have tried managing the individual session cookies with PHP and also session_unset() and session_destroy() but I think the problems are:

1. cookies are set by the domain in the iframe, not the domain of the PHP page
2. cookies are set by ASP.NET app in iframe for which I have no access, and site is LAMP/:PHP

Server Error in '/' Application.
Buffer cannot be null.
Parameter name: buffer
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Buffer cannot be null.
Parameter name: buffer

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentNullException: Buffer cannot be null.
Parameter name: buffer]
System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable) +7679483
System.IO.MemoryStream..ctor(Byte[] buffer) +6
Hardcore.Web.UI.BasePage.LoadPageStateFromPersistenceMedium() in C:\Users\Jason Rockenbach\Development\DisputeSuite\root\Applications\Hardcore\Hardcore.Web.WebUtility\Web\UI\BasePage.vb:133
System.Web.UI.Page.LoadAllState() +43
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1661

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

Created by Anonymous 13 weeks 3 days ago
  Tags:

Answer(s):

-3 points

The cookies created by one application cannot be deleted by the other. The same application has to delete the cookies otherwise it cannot be accessed by other

Created by Anonymous
-5 points

The original programmers may have enveloped them in an iFrame precisely for this very reason, so that they cannot be automatically compromised. WJ

Created by Anonymous

Post your Answer

  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Links to specified hosts will have a rel="nofollow" added to them.

More information about formatting options