Re: How to reset the website when the user leaves it, with vibe.d?

2021-06-29 Thread vnr via Digitalmars-d-learn
On Tuesday, 29 June 2021 at 20:40:29 UTC, Steven Schveighoffer wrote: On 6/29/21 4:25 PM, vnr wrote: [...] Has nothing to do with sessions, you are saving the text posted, and then making it the default text whenever the page is rendered. [here](https://github.com/noc-lang/playground/blob

Re: How to reset the website when the user leaves it, with vibe.d?

2021-06-29 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/29/21 4:25 PM, vnr wrote: Nevertheless, the problem persists and seems to be even deeper, indeed, my site is hosted on Heroku and I can see what a user who is on another machine has written (behavior I just found out). Fortunately, this little site is only for entertainment purposes, but

Re: How to reset the website when the user leaves it, with vibe.d?

2021-06-29 Thread vnr via Digitalmars-d-learn
On Tuesday, 29 June 2021 at 19:05:43 UTC, WebFreak001 wrote: On Tuesday, 29 June 2021 at 16:25:09 UTC, vnr wrote: Hello 😊 I have a bit of a problem that seems simple enough, but I can't find an answer to my questions. On my website, I have two textareas that the user can write on. When the us

Re: How to reset the website when the user leaves it, with vibe.d?

2021-06-29 Thread WebFreak001 via Digitalmars-d-learn
On Tuesday, 29 June 2021 at 16:25:09 UTC, vnr wrote: Hello 😊 I have a bit of a problem that seems simple enough, but I can't find an answer to my questions. On my website, I have two textareas that the user can write on. When the user reloads the page or closes it and then reopens it, the tex

Re: How to reset the website when the user leaves it, with vibe.d?

2021-06-29 Thread WebFreak001 via Digitalmars-d-learn
On Tuesday, 29 June 2021 at 19:05:43 UTC, WebFreak001 wrote: [...] I should add that this is a convenience feature for users and you should avoid setting this unless it absolutely doesn't make sense that stuff is prefilled for the user. It's there to keep input in case you accidentally refr

How to reset the website when the user leaves it, with vibe.d?

2021-06-29 Thread vnr via Digitalmars-d-learn
Hello 😊 I have a bit of a problem that seems simple enough, but I can't find an answer to my questions. On my website, I have two textareas that the user can write on. When the user reloads the page or closes it and then reopens it, the text he wrote is still written, which is quite annoying.