How can I retrieve values from a session on the page opened by window.open("http://... - FULL URL)?

Hi,

I have Page1.asp, which puts value "Test" in the session, then calls:
window.open("http://.../Page2.aspx) - has to be http:// !!!

both Page1.aspx and Page2.aspx are under the same virtual directory!

now I want to retirev the "Test" value on Page2.asps

how?

thanks

netformxAsked:
Who is Participating?
 
RejojohnyCommented:
if the call is not done within the same session using a browser (by the third party) then u will have to store the value in a cache and send the key of the cache back so that it can be used in the second URL (page2.aspx) .. then use the key to get it back from the cache .. if all this done within a session, then u will be able to use a session variable ... if u do plan to use the application cache .. set the other parameters intelligently .. taking into consideration how long the value has to be persisted .. handle the error properly .. if the value is not found ...
0
 
RejojohnyCommented:
u can retrieve the session if u use a relative path .. if u give a full path, i think it would be considered as a new session .. as mentioned if page1 and page2 are in the same virtual directory then u can dorectly use
window.open page2.aspx
0
 
raterusCommented:
since you say it has to be http:// might you also be saying this popup is a different domain name?  Cookies won't work across different domains, a browser would not allow it...
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
netformxAuthor Commented:
it's the same domain name - but the call is made by third party and I can't change it

they call me twice:
1. to Page1 and pass xml
2. to Page2 and I need to retirive this xml

one of the options is save in DB, maybe you have another solutions?

Do you recommend to save in Cache - in Map with unique id (time, for example) for each user. Is it safe enough? Cache should support synchronization etc', right?
0
 
raterusCommented:
tell me exactly what is going on here...I'm not sure if I know what you mean when you say "...the call is made by third party and I can't change it..."
0
 
netformxAuthor Commented:
third party has written code - which cannot be changed.

the only thing I can change is page1 and page2

so they call in the following way:
http://.../Page1.aspx and pass xml by POST
 the next call:
http://.../Page2.aspx  - don't pass xml here

in page2 I need the xml, received in Page1

don't ask why is it so - this is the fact

so, what are my options to retirive xml on page2?
0
 
RejojohnyCommented:
how is the call made? i mean r u using some third party tool which is used in ur web page .. or is it that u have exposed some interface that others are using .. could u explain a bit further .. as far as cache is concerned .. it is ok using it but then how will page2 know whch cache to look for .. even if u use time as the key for the cache .. how will page2 know what page to look for? or is it that u can change the URL for page2 so that it passes some value in querystring? more explanation needed  ..
0
 
netformxAuthor Commented:
I expose interface and third party is using it

you are right that I can receive the value in querystring of page2  - sorry that forgot to mention that
0
 
raterusCommented:
Are these calls are made through a browser?, or is this some backend programming job doing the requests.  In order to maintain the session, the client(third party), will need to maintain the session cookie sent back on the first request, and use that for the second request.  If this isn't a browser making the request, it is likely this isn't being done.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.