View Full Version : laszlo and cookies
whisperstorm
12-03-2003, 08:09 PM
If I have a laszlo app on a different domain from the page it's embedded in, can it still access cookie information?
antun
12-04-2003, 08:22 AM
I think it should work. I did a quick test (I posted the LZX file on mylaszlo.com, and referenced it from the attached HTML file.
Do you want to give it a bash too?
-Antun
whisperstorm
12-04-2003, 09:21 AM
Ok, I see this works, but what I mean is that I want to get the cookie from the page, and do something with it inside the app. For instance say I wanted to get a data path based on the value of the cookie. Is there a way to pass the cookie value "in" to the laszlo widget?
---
I see I could pass it in as a param to the obj call. Perhaps thats good enough for my needs.
antun
12-04-2003, 11:18 AM
Yes - you could write it out using browser JavaScript or even a server side scripting language.
Have a look here:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=423&highlight=cookie
You might even be able to hit another script on your server that returns some cookie value from the request that the client made.
-Antun
I see I could pass it in as a param to the obj call. Perhaps thats good enough for my needs.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.