Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Session lost with IIS Content Rating

Reply
Thread Tools

Session lost with IIS Content Rating

 
 
SteveS
Guest
Posts: n/a
 
      05-04-2004
Hello, this problem is driving me nuts! I am using the Content Ratings
(RSACi) for my website. The settings strictly "G" rated - No violence, sex,
nudity or offensive language. I have a user who also has his "Content
Advisor" turned on. For some reason, the session is lost for the user
ONLY after he runs a javascript function on the page, then clicks submit.
Make sense? If he clicks submit without first running any javascript ,
then the page submits correctly. I have no idea how to work around this.
Do yo have any ideas????

This problem can easily be reproduced:

1) Set "Content Rating" to be enabled in IIS
2) Copy the code below into your own .asp page in a virtual directory.
3) Enable the "Conent Advisor" in IE
4) Open this page
5) Click the button "Add to Session Variable" a few times. This will add the
letter "A" to the session variable
6) Click the link "Run any javascript function"
7) Click the button "Add to Session Variable" and notice all the A's go
away, meaning the session variables are gone.

Why does this happen???? Is there a work around for this? Please let me
know any ideas you may have.

THANK YOU IN ADVANCE FOR YOUR HELP

SteveS

<%@ Language=VBScript %>
<% Option Explicit %>

<html>
<body>
<form name="Form1" method=post action=TestContentRating.asp>
<b>Test Content Rating</b><br><br>
<%
response.Write("This session variable was updated this many times: " &
session("testme"))
session("testme") = session("testme") & "A"
%>
<br><br>
<input type=submit value="Add to Session Variable" ID="Submit1"
NAME="Submit1">
<br><br><a href="JavaScript: RunAnyJavascriptFunction()">Run any javascript
function</a>
<script lang=javascript>
function RunAnyJavascriptFunction() {
//alert("hello me");
}
</script>
</form>
</body>
</html>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
content rating Roedy Green Java 0 12-02-2010 03:13 AM
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Session Data Lost on Response.Redirect with IIS 6.0 deisner@dataprise.com ASP .Net 2 06-06-2006 06:41 PM
Today's Content Quality Rating For comp.lang.perl Web's Best Friend Perl 0 03-30-2006 08:37 PM



Advertisments