Click to See Complete Forum and Search --> : Storing a URL as a cookie


jenw81
03-07-2003, 11:36 AM
I am trying to store a URL as a cookie. I'm using window.location, but it is not picking up the entire URL. For example, this is the URL:

http://cdsdadsweb:7000/pls/dev/pmc_de1_v2$comm.startup?P_DOCUMENT_ID=1535&P_17=1535&Z_CHK=57501

but the retrieved cookie is coming back as:

http://cdsdadsweb:7000/pls/dev/NONE


How do I get it to pick up the entire URL, parameters and all (basically, I'm building a back button. The page that I want stored as a cookie is a record list after a query has been run. I want them to be able to go back to that record list, without having to hit BACK a zillion times...)


Thanks,

Jenny

khalidali63
03-07-2003, 01:16 PM
The correct syntax to do what you are trying to do is

window.location.href

this should return the entire url string

Cheers

Khalid

jenw81
03-07-2003, 01:26 PM
I tried that. I get the same thing. :(

Thanks, tho.


Jenny

khalidali63
03-07-2003, 01:59 PM
Thenit must be the way you are storing the info,make sure when you put the link in cookie its a complete link,or post your complete code here


Khalid