开发者

How to allow anonymous creator of page to make changes, while preventing public access?

开发者 https://www.devze.com 2023-03-30 03:07 出处:网络
I have a simple form that can be filled in and saved by users without logging in. I want the user to be able to view and make changes to the form they complete for the duration of their visit, while p

I have a simple form that can be filled in and saved by users without logging in. I want the user to be able to view and make changes to the form they complete for the duration of their visit, while preventing anybody else from accessing the page (i.e. via /page/1 or pa开发者_如何学JAVAge/edit/1).

How can I do this without making the user create an account immediately?

Thanks.


I'd store in session the id of the created pages. It would be straight to check whether or not one page belongs to the user or not.

0

精彩评论

暂无评论...
验证码 换一张
取 消