Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 01:07 PM
SteveS
Guest
 
Posts: n/a
Default Session lost with IIS Content Rating

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>



 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles