I have a page (2.asp) that loads within the "Mainframe" of an existing page (frames.asp). When 2.asp loads, I want this page to check if the permission in cookie is set for the page to load. If found false, it should break out of the frame and load logout.asp
The cookie was first set on the loginnow.asp with this code.
response.cookies("module").Expires=date + 1
response.cookies("module")("permission")= "yes" %>
On 2.asp the onload() function body checks if the permission is still "yes"
if permission1 = "" or permission2="no" then
if (window.top != window.self)
Unfortunately, this doesnt work! Is there a way to break out of a frame in VBScript. Also the error is on Request.cookies !!
Is there is something wrong in my code? I would appreciate if you can help me out with this.