473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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>

Jul 19 '05 #1
0 1390

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: doltharz | last post by:
Please Help me i'm doing something i though was to be REALLY EASY but it drives me crazy The complete code is at the end of the email (i mean newsgroup article), i always use Option...
3
by: Nhi Lam | last post by:
Hi, I understand that there are 3 modes in which I can configure the SessionStateModule. What I need is an out of process Session State store with fail over support. The "SQL Server Mode" seems...
6
by: Ilia | last post by:
Hi folks, I have some problems with ASP.NET Session State. The following simple program runs well if the Session State set as "InProc". If I switch to "SQLServer", the changes, made by the...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
0
by: mtcc | last post by:
i try simple web page, for first time i add session "aa" var, and i add button, and i check if session keep aa value in postback. when i add call to Dataadapter.fill method, i lost my session on...
3
by: nogoer | last post by:
Im having an issue with an ecommerce app i just moved to ipower.com hosting. The session is getting lost after 45 seconds. It happens like clockwork as ive timed it at least a dozen times. Ill log...
4
by: Sarah Marriott | last post by:
Our website contains session variables that are used to validate if a user is logged in etc. We have found that these variables are randomly lost while navigating the website. We set up some...
0
by: Aarchaic | last post by:
Hello i have problem my session variables seem to disapear as i go along i've created this code to ilustrate whats happening First off i just post 3 detials like a name a age and a favourite...
3
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.