473,387 Members | 3,810 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,387 software developers and data experts.

value of session variable is not stored...

this is unbeliveable...
i'm trying to set a session var "x"
from a local var "y"

....
session("x")= y
response.write( session("x") ) --it outputs the content!
response.end --stop here
....

but, i have another page that tells
the content of these session var...
amazingly it reports the OLD value of the session var....

unfortunately i can't reproduce it with a simple code like this
but i can't post all the code, includes, etc
i put "response.end" for ensure the processing stop there
i'm sure that there is no a double submit
that could overvrite the value....

please, i am desperated... and angry
any idea?

thanks
KS

Jun 27 '08 #1
4 3069
keyser soze wrote:
this is unbeliveable...
i'm trying to set a session var "x"
from a local var "y"

...
session("x")= y
response.write( session("x") ) --it outputs the content!
response.end --stop here
...

but, i have another page that tells
the content of these session var...
amazingly it reports the OLD value of the session var....

unfortunately i can't reproduce it with a simple code like this
but i can't post all the code, includes, etc
i put "response.end" for ensure the processing stop there
i'm sure that there is no a double submit
that could overvrite the value....

please, i am desperated... and angry
any idea?
Without showing us how to reproduce it, all we can do is point you here:
http://www.aspfaq.com/show.asp?id=2157
or
http://www.aspfaq.com/show.asp?id=2346
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 27 '08 #2
well, this is the code for setting the session var,
i can send more and more code
but the "key line" is only one
the value of "ASPLIB_state" is correct
.... all variables begining with "ASPLIB_" are public ...

sub ASPLIB_SaveState()
dim pin
pin= InStr(ASPLIB_state,"@"&ASPLIB_ScriptName)
if pin>0 then
ASPLIB_state= left(ASPLIB_state,pin-3)& mid(ASPLIB_state,pin+1+len(ASPLIB_ScriptName))
end if
dim fst
fst= ASPLIB_nvl( ASPLIB_finalState, 0 )
ASPLIB_state= ASPLIB_state& replace(space(1-fst\10)," ","0")& fst& "@"& ASPLIB_ScriptName
session("estado")= ASPLIB_state
' this is the format of ASPLIB_state --
"00@/inicio.asp00@/sec/inicio.asp00@/sec/ingreso.asp01@/sec/popfuente.asp"
end sub

The last number ( "01" , at the last ".asp" token in the string )
identifies the state of the page
thanks Bob
"keyser soze" <ba*********@hotmail.comescribió en el mensaje
news:u1**************@TK2MSFTNGP03.phx.gbl...
| this is unbeliveable...
| i'm trying to set a session var "x"
| from a local var "y"
|
| ...
| session("x")= y
| response.write( session("x") ) --it outputs the content!
| response.end --stop here
| ...
|
| but, i have another page that tells
| the content of these session var...
| amazingly it reports the OLD value of the session var....
|
| unfortunately i can't reproduce it with a simple code like this
| but i can't post all the code, includes, etc
| i put "response.end" for ensure the processing stop there
| i'm sure that there is no a double submit
| that could overvrite the value....
|
| please, i am desperated... and angry
| any idea?
|
| thanks
| KS
|
|
|
|
|

Jun 27 '08 #3
sorry Bob, i was wrong
Yes: there is a double submission

i do "submit" using a javascript function
could it be the reason for the double submission?
this is the code:

function jslib_post(uri,popup,close){
var dest= document.userform;
if(uri==null) uri= window.opener.location.href;
if(popup==null){
dest.target= "";
}else{
window.open("","popup", ...);
dest.target= "popup";
}
if(close){
window.opener.name= "mainwin";
dest.target= "mainwin";
}
dest.method= "post";
dest.action= uri;
dest.submit();
if(close) window.close();
return false;
}

i'm now testing with a direct, specific submission

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomescribió en el mensaje
news:O9**************@TK2MSFTNGP02.phx.gbl...
| keyser soze wrote:
| this is unbeliveable...
| i'm trying to set a session var "x"
| from a local var "y"
| >
| ...
| session("x")= y
| response.write( session("x") ) --it outputs the content!
| response.end --stop here
| ...
| >
| but, i have another page that tells
| the content of these session var...
| amazingly it reports the OLD value of the session var....
| >
| unfortunately i can't reproduce it with a simple code like this
| but i can't post all the code, includes, etc
| i put "response.end" for ensure the processing stop there
| i'm sure that there is no a double submit
| that could overvrite the value....
| >
| please, i am desperated... and angry
| any idea?
| >
| Without showing us how to reproduce it, all we can do is point you here:
| http://www.aspfaq.com/show.asp?id=2157
| or
| http://www.aspfaq.com/show.asp?id=2346
|
|
| --
| Microsoft MVP -- ASP/ASP.NET
| Please reply to the newsgroup. The email account listed in my From
| header is my spam trap, so I don't check it very often. You will get a
| quicker response by posting to the newsgroup.
|
|

Jun 27 '08 #4
Solved!!!! ...double submission!!!
thanks anyway, Bob !

i'm happy now :-)

ASP is the best again !!

KS

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomescribió en el mensaje
news:O9**************@TK2MSFTNGP02.phx.gbl...
| keyser soze wrote:
| this is unbeliveable...
| i'm trying to set a session var "x"
| from a local var "y"
| >
| ...
| session("x")= y
| response.write( session("x") ) --it outputs the content!
| response.end --stop here
| ...
| >
| but, i have another page that tells
| the content of these session var...
| amazingly it reports the OLD value of the session var....
| >
| unfortunately i can't reproduce it with a simple code like this
| but i can't post all the code, includes, etc
| i put "response.end" for ensure the processing stop there
| i'm sure that there is no a double submit
| that could overvrite the value....
| >
| please, i am desperated... and angry
| any idea?
| >
| Without showing us how to reproduce it, all we can do is point you here:
| http://www.aspfaq.com/show.asp?id=2157
| or
| http://www.aspfaq.com/show.asp?id=2346
|
|
| --
| Microsoft MVP -- ASP/ASP.NET
| Please reply to the newsgroup. The email account listed in my From
| header is my spam trap, so I don't check it very often. You will get a
| quicker response by posting to the newsgroup.
|
|

Jun 27 '08 #5

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

Similar topics

3
by: tornado | last post by:
Hi all, I am pretty new to PHP. I was reading PHP manual and trying out the example from 2nd chapter (A simple Tutorial). When i try to print the variable as given in the example it returns...
3
by: Arnaldo Martinez | last post by:
Hi, friends: I have an ASP page where an user enter a value and click the submit button. I want this value to be transfer to a session("temp") within the same page where I want to call it back...
4
by: Jack | last post by:
Hi, I have a checkbox the value which goes to a database via a asp page that builds the sql string. In the front end asp page, the checkbox code is written as follows: <i><input...
3
by: Michelle Stone | last post by:
hi al i have "variab1 = window.open ("a.aspx", "helloworld"); i do this inside a RegisterStartupScrict ("key", "<script language=javascript>******</script>"); where ***** is hte javascript...
5
by: Andy G | last post by:
I have a registration page that captures 75% of the users data. After they enter that info they are redirected to one of two pages depending on how they answered a question on the registation...
2
by: Al Wilkerson | last post by:
Hey guys, I'm having problems with creating/storing a value in a session variable for later retrieving on another page. Here is the aspx page where I create/store the value ...
1
by: tperri | last post by:
Hi everyone, I have an .aspx file that is used by an external program to perform a function. There is no code behind, all code and HTML is contained in one file. the structure is like this: ...
4
by: Jon Paal | last post by:
I captured an arraylist into a session value but to display the current values, the page requires a postback or else it displays the prior version of the value. how do I force a post back...
17
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post by:
I am trying to replace a huge chunck of code that currently I incorporate with an #Include directive. The program rarely has to flow through that code, so I thought it would be better if I used...
8
by: YYZ | last post by:
I'm using asp, not asp.net. I've got some open ended questions that I was really hoping someone in here could answer, or direct me to some resources that will help me answer them on my own. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.