|
Okay... This is obviously not coming across the way I want. I do not have control on the server side. This is a script which is a hosted solution and in the form that is rendered, there is an attribute of target="_top". This is messing up my site because I'm trying to open this page in a lightbox instead of a pop-up. But... Because there is a target="_top" it is overriding my page completely (not just the lightbox) when the submit button is clicked.
I'm not trying to do anything malicioius, just have a more pleasing appearance for my users via the lightbox.
Session ID: The form that is rendered has a <input> tag of type "hidden" which is name="sid". This is a hash value that is used as a session id. What I want to do is not connect to the hosted server at all. I would like to code my OWN custom form and have the same action="" attribute/value so that when the form is submitted it will automatically do the product search. The issue is that when I do this, I get an error back "no session".
Now... If I open up a new browser window, go to the actual website with the form, THEIR server automatically generates a session ID and puts it into the hidden field mentioned above. From there, if I *scrape* (or copy) that session id and hard code it into MY custom form that I coded (as a hidden field) then it works perfectly.
The problem is that I cannot do that for every user that comes to the site, however IF I could find a way to use javascript (or some other scripting language -- ie. php/cURL) to do it then I could get a new session id for every user.
It is not a true session ID in the sense that you would think. It doesn't get passed to the browser and then the client keeps it in memory. Instead, EVERY time you refresh THEIR page it reloads a new session ID. That is what gave me the idea of doing this.
|