Re: Server globals

2022-08-13 Thread Mike Kerner via use-livecode
With LC thinking that they want to emphasize web apps, more, the complications with server probably also need some effort. On Sat, Aug 13, 2022 at 8:54 AM Tim Selander via use-livecode < use-livecode@lists.runrev.com> wrote: > Alex, > > Went to your page, and wow, that is exactly what I was

Re: Server globals

2022-08-13 Thread Tim Selander via use-livecode
Alex, Went to your page, and wow, that is exactly what I was trying to do. I'm still trying to figure out exactly how you do it, but I'm headed in the right direction. Thanks! Tim On 2022.08.13 8:36, Alex Tweedly via use-livecode wrote: Hi Tim, I think there are many easy ways to do this

Re: Server globals

2022-08-12 Thread Alex Tweedly via use-livecode
Hi Tim, I think there are many easy ways to do this - and many not-so-easy ones too. IMO, easiest for something simple like this is to just use the url. See tweedly.net/page_by_url.txt for the code, or try it out at tweedly.net/page_by_url.lc (or try tweedly.net/page_by_url.lc?row=14 ) You

Re: Server globals

2022-08-12 Thread Tim Selander via use-livecode
@lists.runrev.com Cc: Tim Selander Subject: Re: Server globals Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test

RE: Server globals

2022-08-12 Thread Ralph DiMola via use-livecode
...@lists.runrev.com] On Behalf Of Tim Selander via use-livecode Sent: Friday, August 12, 2022 9:18 AM To: use-livecode@lists.runrev.com Cc: Tim Selander Subject: Re: Server globals Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from

Re: Server globals

2022-08-12 Thread Jacques Clavel via use-livecode
Hi Tim, You can also use localStorage for user specific data at the browser level : In your .lc script on the server : to store localStorage.jcf2 = '" &sDir& "' and retrieve data var jMem = localStorage.getItem('jcf2'); Regards, JC Le ven. 12 août 2022 à 15:19, Tim Selander via

Re: Server globals

2022-08-12 Thread matthias rebbe via use-livecode
Hi Tim, the maximum size of a cookie is 4096 bytes. I am using Sitelok from Vibralogix on one site for a membership list. I've integrated it in a site i created with Rapidweaver. I am also using Livecode Server scripts on that site for several tasks including form processing. The good thing

Re: Server globals

2022-08-12 Thread Tim Selander via use-livecode
Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. One of the reasons I'm fussing with this is

Re: Server globals

2022-08-12 Thread matthias rebbe via use-livecode
Hi Tim, does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. If

Server globals

2022-08-12 Thread Tim Selander via use-livecode
As always, appreciate everyone's help. Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in