473,566 Members | 2,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=VBScri pt %>
<% Option Explicit %>

<html>
<body>
<form name="Form1" method=post action=TestCont entRating.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="JavaScrip t: RunAnyJavascrip tFunction()">Ru n any javascript
function</a>
<script lang=javascript >
function RunAnyJavascrip tFunction() {
//alert("hello me");
}
</script>
</form>
</body>
</html>

Jul 19 '05 #1
0 1399

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

Similar topics

11
3331
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 Explicit and Response.Expires=-1,
3
6004
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 to be it, but I heard there is quite a bit of degradation in performance for using this mode. My next option is the "State Server Mode". However,...
6
5419
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 second thread, are lost. Any idea? I use VS.NET 2003 on Windows Server 2003 with hot fixes (as of 30-Oct-2003) and SQL Server 2000 SP 3a.
5
5262
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 sessionstate inproc mode and users are randomly losing their session. I do not believe it is happening across all users at one time. It seems to...
0
1122
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 postback, and i get isNewSession=true!! help please! ===============================
3
1636
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 into the app then browse to a static content page. Ill then sit there refreshing the page every few seconds until finally the session is lost after...
4
2861
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 basic code (as shown below) which used a meta tag to refresh an aspx page every second. It tests whether there is any content in a session variable,...
0
1471
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 number. that in turn goes to the next page where its being picked up by the php code and put into the Global Variable. the page uses the variables...
3
4989
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 web.config: <authentication mode="Forms"> <forms name=".ReMaCRM" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx"...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7951
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.