简体   繁体   English

如何让一个网页只能访问一次?

[英]How do I make a webpage only available once?

I am trying to make a webpage that only new users can see if a returning viewer returns he will be redirected to another webpage I found this on stackoverflow but I am unable to figure it out.我正在尝试制作一个只有新用户才能看到的网页,如果返回的观众返回,他将被重定向到另一个网页,我在 stackoverflow 上找到了这个,但我无法弄清楚。

I have made a HTML and CSS page which showcases the features of my web app.我制作了一个 HTML 和 CSS 页面,它展示了我的网络应用程序的功能。 I want this page to load only for new visitors.我希望此页面仅为新访问者加载。 If a returning visitor visits my domain, it should redirect him/her to the web platform.如果回访者访问我的域,它应该将他/她重定向到网络平台。 Essentially, the new user should see "Landing Page" while a returning user should be redirected to "Web Platform"本质上,新用户应该看到“登陆页面”,而返回的用户应该被重定向到“网络平台”

The answer was答案是

How do I make a web page show up only once? 如何让一个网页只显示一次?

I am unable to use it because I don't know what to do and how to create localstorage我无法使用它,因为我不知道该做什么以及如何创建 localstorage

您应该使用 PHP 代码使网页仅通过 SESSION 和日志可用一次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM